diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-05-26 11:02:48 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:37:51 -0400 |
commit | 691e6d59d2b6cdb4595e5f626503a1c9e98b8baf (patch) | |
tree | c8a43c063154398606bf9839b07d3f64b7dda1c8 /kernel | |
parent | c0a8d9b0692cced5b0701ed501012e28b224d32b (diff) |
audit: reduce scope of audit_log_fcaps
audit_log_fcaps() isn't used outside kernel/audit.c. Reduce its scope.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit.c | 2 | ||||
-rw-r--r-- | kernel/audit.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 9a951e67a89e..de991950091f 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -1681,7 +1681,7 @@ void audit_log_cap(struct audit_buffer *ab, char *prefix, kernel_cap_t *cap) | |||
1681 | } | 1681 | } |
1682 | } | 1682 | } |
1683 | 1683 | ||
1684 | void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name) | 1684 | static void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name) |
1685 | { | 1685 | { |
1686 | kernel_cap_t *perm = &name->fcap.permitted; | 1686 | kernel_cap_t *perm = &name->fcap.permitted; |
1687 | kernel_cap_t *inh = &name->fcap.inheritable; | 1687 | kernel_cap_t *inh = &name->fcap.inheritable; |
diff --git a/kernel/audit.h b/kernel/audit.h index 7bb65730c890..3cdffad5a1d9 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -222,7 +222,6 @@ extern void audit_copy_inode(struct audit_names *name, | |||
222 | const struct inode *inode); | 222 | const struct inode *inode); |
223 | extern void audit_log_cap(struct audit_buffer *ab, char *prefix, | 223 | extern void audit_log_cap(struct audit_buffer *ab, char *prefix, |
224 | kernel_cap_t *cap); | 224 | kernel_cap_t *cap); |
225 | extern void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name); | ||
226 | extern void audit_log_name(struct audit_context *context, | 225 | extern void audit_log_name(struct audit_context *context, |
227 | struct audit_names *n, struct path *path, | 226 | struct audit_names *n, struct path *path, |
228 | int record_num, int *call_panic); | 227 | int record_num, int *call_panic); |