diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2018-12-11 19:32:16 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2018-12-11 19:32:16 +0000 |
commit | cc426dd31990b8b50b210efc450e404596548ca1 (patch) | |
tree | 4c797c5d8886d8d05bb5346b747005b539105825 /sys/security/audit | |
parent | 959530cc41aea5f878c2c2cea5b545d295108bab (diff) | |
download | src-cc426dd31990b8b50b210efc450e404596548ca1.tar.gz src-cc426dd31990b8b50b210efc450e404596548ca1.zip |
Remove unused argument to priv_check_cred.
Patch mostly generated with cocinnelle:
@@
expression E1,E2;
@@
- priv_check_cred(E1,E2,0)
+ priv_check_cred(E1,E2)
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=341827
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c index a092e27b0a74..a6680ede392e 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -628,7 +628,7 @@ sys_setauid(struct thread *td, struct setauid_args *uap) if (error) goto fail; #endif - error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT, 0); + error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT); if (error) goto fail; newcred->cr_audit.ai_auid = id; @@ -693,7 +693,7 @@ sys_setaudit(struct thread *td, struct setaudit_args *uap) if (error) goto fail; #endif - error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT, 0); + error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT); if (error) goto fail; bzero(&newcred->cr_audit, sizeof(newcred->cr_audit)); @@ -756,7 +756,7 @@ sys_setaudit_addr(struct thread *td, struct setaudit_addr_args *uap) if (error) goto fail; #endif - error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT, 0); + error = priv_check_cred(oldcred, PRIV_AUDIT_SETAUDIT); if (error) goto fail; newcred->cr_audit = aia; |