summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorGONG, Ruiqi <gongruiqi@huaweicloud.com>2023-05-31 19:18:33 +0800
committerJohn Johansen <john.johansen@canonical.com>2023-07-09 17:31:11 -0700
commit8de4a7de1950e88c233b105faf24666db348e65a (patch)
tree81be577a9211bea8c58dd485a35a45949f70d00f /security
parent0897fcb1c1e7316375166e0a665237bce2391a09 (diff)
downloadlinux-stable-8de4a7de1950e88c233b105faf24666db348e65a.tar.gz
linux-stable-8de4a7de1950e88c233b105faf24666db348e65a.tar.bz2
linux-stable-8de4a7de1950e88c233b105faf24666db348e65a.zip
apparmor: remove unused macro
SOCK_ctx() doesn't seem to be used anywhere in the code, so remove it. Signed-off-by: GONG, Ruiqi <gongruiqi@huaweicloud.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/include/net.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/apparmor/include/net.h b/security/apparmor/include/net.h
index 6fa440b5daed..64a0112bf62d 100644
--- a/security/apparmor/include/net.h
+++ b/security/apparmor/include/net.h
@@ -52,7 +52,6 @@ struct aa_sk_ctx {
};
#define SK_CTX(X) ((X)->sk_security)
-#define SOCK_ctx(X) SOCK_INODE(X)->i_security
#define DEFINE_AUDIT_NET(NAME, OP, SK, F, T, P) \
struct lsm_network_audit NAME ## _net = { .sk = (SK), \
.family = (F)}; \