projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef9151
)
audit: remove open_arg() function that is never used
author
Richard Guy Briggs
<rgb@redhat.com>
Mon, 15 Sep 2014 20:17:37 +0000
(16:17 -0400)
committer
Eric Paris
<eparis@redhat.com>
Tue, 23 Sep 2014 20:37:55 +0000
(16:37 -0400)
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>
kernel/auditsc.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index 4e17443fd1efb1f26d381fd15f0da72fbd12f154..63a74a703c976787fbd76996d5ace745b3ec6e58 100644
(file)
--- 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;