diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-09-15 16:17:37 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:37:55 -0400 |
commit | f874738e8c178b19479f7b143211a1df00367988 (patch) | |
tree | 90655d73d2d244a0d9870c6cd1323074c54e9cea /kernel | |
parent | 9ef91514774a140e468f99d73d7593521e6d25dc (diff) | |
download | blackbird-op-linux-f874738e8c178b19479f7b143211a1df00367988.tar.gz blackbird-op-linux-f874738e8c178b19479f7b143211a1df00367988.zip |
audit: remove open_arg() function that is never used
open_arg() was added in commit 55669bfa "audit: AUDIT_PERM support"
and never used. Remove it.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 4e17443fd1ef..63a74a703c97 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -126,14 +126,6 @@ struct audit_tree_refs { struct audit_chunk *c[31]; }; -static inline int open_arg(int flags, int mask) -{ - int n = ACC_MODE(flags); - if (flags & (O_TRUNC | O_CREAT)) - n |= AUDIT_PERM_WRITE; - return n & mask; -} - static int audit_match_perm(struct audit_context *ctx, int mask) { unsigned n; |