diff options
author | John Johansen <john.johansen@canonical.com> | 2024-04-23 08:59:33 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2025-01-18 06:47:12 -0800 |
commit | 9045aa25d17cf1d13a1c31fc45ed1f9ca725e30e (patch) | |
tree | 82764f9f3b5895ac2db12eec0a37a5914a18c0d8 /security/apparmor/include/net.h | |
parent | ce9e3b3fa25a239f5c80989a1d05719bb2793fd4 (diff) |
apparmor: remove af_select macro
The af_select macro just adds a layer of unnecessary abstraction that
makes following what the code is doing harder.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/net.h')
-rw-r--r-- | security/apparmor/include/net.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/security/apparmor/include/net.h b/security/apparmor/include/net.h index c42ed8a73f1c..82dc38e4c925 100644 --- a/security/apparmor/include/net.h +++ b/security/apparmor/include/net.h @@ -73,16 +73,6 @@ static inline struct aa_sk_ctx *aa_sock(const struct sock *sk) (SK)->sk_protocol) -#define af_select(FAMILY, FN, DEF_FN) \ -({ \ - int __e; \ - switch ((FAMILY)) { \ - default: \ - __e = DEF_FN; \ - } \ - __e; \ -}) - struct aa_secmark { u8 audit; u8 deny; |