Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

apparmor: remove redundant unconfined check.

profile_af_perm and profile_af_sk_perm are only ever called after
checking that the profile is not unconfined. So we can drop these
redundant checks.

Signed-off-by: John Johansen <john.johansen@canonical.com>

+1 -2
+1 -2
security/apparmor/net.c
··· 118 118 119 119 AA_BUG(family >= AF_MAX); 120 120 AA_BUG(type < 0 || type >= SOCK_MAX); 121 + AA_BUG(profile_unconfined(profile)); 121 122 122 - if (profile_unconfined(profile)) 123 - return 0; 124 123 state = RULE_MEDIATES(rules, AA_CLASS_NET); 125 124 if (!state) 126 125 return 0;