summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs2014-05-26 16:59:28 +0200
committerEric Paris2014-09-23 22:37:50 +0200
commitc0a8d9b0692cced5b0701ed501012e28b224d32b (patch)
treed21f30e9cfed2b45d9ebcaed2b0b7bae8b32a41a /kernel/audit.c
parentaudit: arm64: Remove the audit arch argument to audit_syscall_entry (diff)
downloadkernel-qcow2-linux-c0a8d9b0692cced5b0701ed501012e28b224d32b.tar.gz
kernel-qcow2-linux-c0a8d9b0692cced5b0701ed501012e28b224d32b.tar.xz
kernel-qcow2-linux-c0a8d9b0692cced5b0701ed501012e28b224d32b.zip
audit: reduce scope of audit_net_id
audit_net_id isn't used outside kernel/audit.c. Reduce its scope. Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 3ef2e0e797e8..9a951e67a89e 100644
--- 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];