selinux: recognize netlink messages for 'ip addrlabel'
authorMichal Schmidt <[email protected]>
Wed, 5 Nov 2008 12:35:06 +0000 (13:35 +0100)
committerJames Morris <[email protected]>
Wed, 5 Nov 2008 23:08:36 +0000 (07:08 +0800)
commit2f99db28af90957271a6448479c3e492ccf7c697
tree00386a75dd8c998621d2204609425b41be420f62
parent41d9f9c524a53477467b7e0111ff3d644198f191
selinux: recognize netlink messages for 'ip addrlabel'

In enforcing mode '/sbin/ip addrlabel' results in a SELinux error:
type=SELINUX_ERR msg=audit(1225698822.073:42): SELinux:  unrecognized
netlink message type=74 for sclass=43

The problem is missing RTM_*ADDRLABEL entries in SELinux's netlink
message types table.

Reported in https://bugzilla.redhat.com/show_bug.cgi?id=469423

Signed-off-by: Michal Schmidt <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: James Morris <[email protected]>
security/selinux/nlmsgtab.c