diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-11-14 19:22:02 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-11-14 19:22:02 +0000 |
commit | f34a2f56c384374b67a25ff76cb7948ae863be4c (patch) | |
tree | d197ae9ca6c025c43bfa2219c35271e106c07774 /sys/sys | |
parent | fb8ab68084bfc3d93c83f2c706cd4ca3d09f0ef9 (diff) | |
download | src-test2-f34a2f56c384374b67a25ff76cb7948ae863be4c.tar.gz src-test2-f34a2f56c384374b67a25ff76cb7948ae863be4c.zip |
Notes
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/ucred.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index a8326946c26a..5381901b505d 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -114,6 +114,28 @@ struct xucred { struct proc; struct thread; +struct credbatch { + struct ucred *cred; + int users; + int ref; +}; + +static inline void +credbatch_prep(struct credbatch *crb) +{ + crb->cred = NULL; + crb->users = 0; + crb->ref = 0; +} +void credbatch_add(struct credbatch *crb, struct thread *td); +static inline void +credbatch_process(struct credbatch *crb) +{ + +} +void credbatch_add(struct credbatch *crb, struct thread *td); +void credbatch_final(struct credbatch *crb); + void change_egid(struct ucred *newcred, gid_t egid); void change_euid(struct ucred *newcred, struct uidinfo *euip); void change_rgid(struct ucred *newcred, gid_t rgid); |