提交 691e6d59 编写于 作者: R Richard Guy Briggs 提交者: Eric Paris

audit: reduce scope of audit_log_fcaps

audit_log_fcaps() isn't used outside kernel/audit.c.  Reduce its scope.
Signed-off-by: NRichard Guy Briggs <rgb@redhat.com>
上级 c0a8d9b0
...@@ -1681,7 +1681,7 @@ void audit_log_cap(struct audit_buffer *ab, char *prefix, kernel_cap_t *cap) ...@@ -1681,7 +1681,7 @@ void audit_log_cap(struct audit_buffer *ab, char *prefix, kernel_cap_t *cap)
} }
} }
void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name) static void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name)
{ {
kernel_cap_t *perm = &name->fcap.permitted; kernel_cap_t *perm = &name->fcap.permitted;
kernel_cap_t *inh = &name->fcap.inheritable; kernel_cap_t *inh = &name->fcap.inheritable;
......
...@@ -222,7 +222,6 @@ extern void audit_copy_inode(struct audit_names *name, ...@@ -222,7 +222,6 @@ extern void audit_copy_inode(struct audit_names *name,
const struct inode *inode); const struct inode *inode);
extern void audit_log_cap(struct audit_buffer *ab, char *prefix, extern void audit_log_cap(struct audit_buffer *ab, char *prefix,
kernel_cap_t *cap); kernel_cap_t *cap);
extern void audit_log_fcaps(struct audit_buffer *ab, struct audit_names *name);
extern void audit_log_name(struct audit_context *context, extern void audit_log_name(struct audit_context *context,
struct audit_names *n, struct path *path, struct audit_names *n, struct path *path,
int record_num, int *call_panic); int record_num, int *call_panic);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册