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>
This commit is contained in:
GONG, Ruiqi 2023-05-31 19:18:33 +08:00 committed by John Johansen
parent 0897fcb1c1
commit 8de4a7de19
1 changed files with 0 additions and 1 deletions

View 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)}; \