diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-16 15:57:49 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-06-11 13:11:45 -0400 |
commit | d99cf13f14200cdb5cbb704345774c9c0698612d (patch) | |
tree | f79ee254c979a9cf0289bcbeb0de447b0a9befcd /security/selinux/avc.c | |
parent | b17ec22fb339bfcb1eadd5f5e196dc705dcf3949 (diff) | |
download | linux-d99cf13f14200cdb5cbb704345774c9c0698612d.tar.gz linux-d99cf13f14200cdb5cbb704345774c9c0698612d.tar.bz2 linux-d99cf13f14200cdb5cbb704345774c9c0698612d.zip |
selinux: kill 'flags' argument in avc_has_perm_flags() and avc_audit()
... along with avc_has_perm_flags() itself, since now it's identical
to avc_has_perm() (as pointed out by Paul Moore)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[PM: add "selinux:" prefix to subj and tweak for length]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r-- | security/selinux/avc.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 9322687cb030..97f4c944a20f 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -1180,25 +1180,7 @@ int avc_has_perm(struct selinux_state *state, u32 ssid, u32 tsid, u16 tclass, &avd); rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc, - auditdata, 0); - if (rc2) - return rc2; - return rc; -} - -int avc_has_perm_flags(struct selinux_state *state, - u32 ssid, u32 tsid, u16 tclass, u32 requested, - struct common_audit_data *auditdata, - int flags) -{ - struct av_decision avd; - int rc, rc2; - - rc = avc_has_perm_noaudit(state, ssid, tsid, tclass, requested, 0, - &avd); - - rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc, - auditdata, flags); + auditdata); if (rc2) return rc2; return rc; |