selinux: recognize netlink messages for 'ip addrlabel'
Subsystems (3)
PATCH 1/1 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
--- security/selinux/nlmsgtab.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
security/selinux/nlmsgtab.c +3 -0
@@ -63,6 +63,9 @@ static struct nlmsg_perm nlmsg_route_perms[] = { RTM_GETANYCAST, NETLINK_ROUTE_SOCKET__NLMSG_READ }, { RTM_GETNEIGHTBL, NETLINK_ROUTE_SOCKET__NLMSG_READ }, { RTM_SETNEIGHTBL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_NEWADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_DELADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_GETADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_READ }, }; static struct nlmsg_perm nlmsg_firewall_perms[] =
Signature · 1 line
1.6.0.3
Quoted 10 lines · Michal Schmidt
In enforcing mode '
/sbin/ipaddrlabel' results in a SELinux error:
type=SELINUX_ERR msg=audit(1225698822.073:42): SELinux: unrecognized netlink message type=74 for sclass=43The 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]>
Quoted 18 lines
--- security/selinux/nlmsgtab.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)security/selinux/nlmsgtab.c +3
-0@@ -63,6 +63,9 @@ static struct nlmsg_perm nlmsg_route_perms[] = { RTM_GETANYCAST, NETLINK_ROUTE_SOCKET__NLMSG_READ }, { RTM_GETNEIGHTBL, NETLINK_ROUTE_SOCKET__NLMSG_READ }, { RTM_SETNEIGHTBL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_NEWADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_DELADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_WRITE }, + { RTM_GETADDRLABEL, NETLINK_ROUTE_SOCKET__NLMSG_READ }, }; static struct nlmsg_perm nlmsg_firewall_perms[] =
Signature · 2 lines
Stephen Smalley National Security Agency
Quoted 7 lines · Michal Schmidt
In enforcing mode '
/sbin/ipaddrlabel' results in a SELinux error:
type=SELINUX_ERR msg=audit(1225698822.073:42): SELinux: unrecognized netlink message type=74 for sclass=43The problem is missing RTM_*ADDRLABEL entries in SELinux's netlink message types table.
Quoted 6 lines
Reported in https://bugzilla.redhat.com/show_bug.cgi?id=469423
Signed-off-by Michal Schmidt <[email protected]>--- security/selinux/nlmsgtab.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next
Signature · 2 lines
James Morris <[email protected]>