apparmor: in preparation for finer networking rules rework match_prot
authorJohn Johansen <john.johansen@canonical.com>
Wed, 24 Apr 2024 22:54:26 +0000 (15:54 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 18 Jan 2025 14:47:12 +0000 (06:47 -0800)
commitb4940d913cc2c67f8f6bf17abbf3e5301f95e260
treeca125d9d6580f85454d6627c7397f744788d4c5a
parent6cc6a0523dde5b1f001d559d0e034494bc8b0db0
apparmor: in preparation for finer networking rules rework match_prot

Rework match_prot into a common fn that can be shared by all the
networking rules. This will provide compatibility with current socket
mediation, via the early bailout permission encoding.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/net.h
security/apparmor/net.c