aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/audit.h
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2017-10-24 18:52:31 -0700
committerPaul Moore <paul@paul-moore.com>2017-11-10 16:08:47 -0500
commitf7b53637c090bd8ce2dc74ad0f3aa1898aff2524 (patch)
tree560bfa9d9604d356144f9fcbc8112e699d59d328 /include/linux/audit.h
parentaudit: Allow auditd to set pid to 0 to end auditing (diff)
downloadwireguard-linux-f7b53637c090bd8ce2dc74ad0f3aa1898aff2524.tar.xz
wireguard-linux-f7b53637c090bd8ce2dc74ad0f3aa1898aff2524.zip
Audit: remove unused audit_log_secctx function
The function audit_log_secctx() is unused in the upstream kernel. All it does is wrap another function that doesn't need wrapping. It claims to give you the SELinux context, but that is not true if you are using a different security module. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: James Morris <james.l.morris@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r--include/linux/audit.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 2150bdccfbab..fa1b068d911d 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -149,12 +149,6 @@ extern void audit_log_key(struct audit_buffer *ab,
extern void audit_log_link_denied(const char *operation,
const struct path *link);
extern void audit_log_lost(const char *message);
-#ifdef CONFIG_SECURITY
-extern void audit_log_secctx(struct audit_buffer *ab, u32 secid);
-#else
-static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid)
-{ }
-#endif
extern int audit_log_task_context(struct audit_buffer *ab);
extern void audit_log_task_info(struct audit_buffer *ab,
@@ -203,8 +197,6 @@ static inline void audit_log_key(struct audit_buffer *ab, char *key)
static inline void audit_log_link_denied(const char *string,
const struct path *link)
{ }
-static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid)
-{ }
static inline int audit_log_task_context(struct audit_buffer *ab)
{
return 0;