diff options
author | mjg <mjg@FreeBSD.org> | 2015-06-16 09:52:36 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-06-16 09:52:36 +0000 |
commit | a5a3a94b02f2b62a521d49f600b762567d4f8451 (patch) | |
tree | 345352bf010aed96b00945e57e253feda213dd76 /sys/security/audit | |
parent | 1b5e46102cb321470ac57b25aeac1c8febd34655 (diff) | |
download | FreeBSD-src-a5a3a94b02f2b62a521d49f600b762567d4f8451.zip FreeBSD-src-a5a3a94b02f2b62a521d49f600b762567d4f8451.tar.gz |
fd: make rights a mandatory argument to fget_unlocked
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit_arg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/security/audit/audit_arg.c b/sys/security/audit/audit_arg.c index 2e86842..d17445f 100644 --- a/sys/security/audit/audit_arg.c +++ b/sys/security/audit/audit_arg.c @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/filedesc.h> +#include <sys/capsicum.h> #include <sys/ipc.h> #include <sys/mount.h> #include <sys/proc.h> @@ -894,6 +895,7 @@ audit_arg_fcntl_rights(uint32_t fcntlrights) void audit_sysclose(struct thread *td, int fd) { + cap_rights_t rights; struct kaudit_record *ar; struct vnode *vp; struct file *fp; @@ -906,7 +908,7 @@ audit_sysclose(struct thread *td, int fd) audit_arg_fd(fd); - if (getvnode(td->td_proc->p_fd, fd, 0, &fp) != 0) + if (getvnode(td->td_proc->p_fd, fd, cap_rights_init(&rights), &fp) != 0) return; vp = fp->f_vnode; |