diff options
author | mjg <mjg@FreeBSD.org> | 2015-03-16 00:10:03 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-03-16 00:10:03 +0000 |
commit | 054f9cab595b222f85a975c8e12658ce0856c346 (patch) | |
tree | d2955bf63801be88abf97941c4408cfec687393c /sys/sys/ucred.h | |
parent | 0038f0beedb51509dd45ce20e69215e0e61f9c71 (diff) | |
download | FreeBSD-src-054f9cab595b222f85a975c8e12658ce0856c346.zip FreeBSD-src-054f9cab595b222f85a975c8e12658ce0856c346.tar.gz |
cred: add proc_set_cred helper
The goal here is to provide one place altering process credentials.
This eases debugging and opens up posibilities to do additional work when such
an action is performed.
Diffstat (limited to 'sys/sys/ucred.h')
-rw-r--r-- | sys/sys/ucred.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index a6531c4..2b42b01 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -106,6 +106,7 @@ void crcopy(struct ucred *dest, struct ucred *src); struct ucred *crcopysafe(struct proc *p, struct ucred *cr); struct ucred *crdup(struct ucred *cr); void cred_update_thread(struct thread *td); +struct ucred *proc_set_cred(struct proc *p, struct ucred *cr); void crfree(struct ucred *cr); struct ucred *crget(void); struct ucred *crhold(struct ucred *cr); |