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:
4913c59
)
audit: reduce scope of audit_net_id
author
Richard Guy Briggs
<rgb@redhat.com>
Mon, 26 May 2014 14:59:28 +0000
(10:59 -0400)
committer
Eric Paris
<eparis@redhat.com>
Tue, 23 Sep 2014 20:37:50 +0000
(16:37 -0400)
audit_net_id isn't used outside kernel/audit.c. Reduce its scope.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
kernel/audit.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/audit.c
b/kernel/audit.c
index 3ef2e0e797e8e576cc6c922d65ef2dc6e40e2d86..9a951e67a89e5a45e0963cfe558339face43b95b 100644
(file)
--- a/
kernel/audit.c
+++ b/
kernel/audit.c
@@
-126,7
+126,7
@@
static atomic_t audit_lost = ATOMIC_INIT(0);
/* The netlink socket. */
static struct sock *audit_sock;
-int audit_net_id;
+
static
int audit_net_id;
/* Hash for inode-based rules */
struct list_head audit_inode_hash[AUDIT_INODE_BUCKETS];