apparmor: remove unused macro
authorGONG, Ruiqi <gongruiqi@huaweicloud.com>
Wed, 31 May 2023 11:18:33 +0000 (19:18 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 10 Jul 2023 00:31:11 +0000 (17:31 -0700)
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>
security/apparmor/include/net.h

index 6fa440b5daed8daec267f468330295988ca09c32..64a0112bf62dfdee5c14297e214ea5b281f2d200 100644 (file)
@@ -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)};         \