apparmor: remove redundant unconfined check.
authorJohn Johansen <john.johansen@canonical.com>
Sun, 29 Jan 2023 09:55:03 +0000 (01:55 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 18 Jan 2025 14:47:12 +0000 (06:47 -0800)
commit46b9b994dd554099b3ca74a20a0d1fb392c83a87
treeaefbfab213f8597c6f78504b9f6f0be2fb6f7164
parent280799f724088ceea409564f4412181e354aba22
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>
security/apparmor/net.c