support fine-grained netlink mediation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
'man 7 netlink' describes various netlink families that can be used such as NETLINK_FIREWALL, NETLINK_ROUTE, NETLINK_
network [ DOMAIN ] [ TYPE | PROTOCOL ]
such that we can have:
network netlink firewall,
network netlink route,
network netlink kobject_uevent,
'firewall', 'route', 'kobject_uevent', etc would only be valid when domain is 'netlink'.
I noticed that selinux is mediating reads and writes to these sockets and if apparmor were modified for the above, it would be great to also mediate recvmsg/sendmsg since some applications use netlink sockets to listen for events (eg, recv for udev, multicast, etc) and have no need for sending. Is this already planned as part of bug #796588 (ie, fine-grained network mediation)?