]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selinux: Assign proper class to PF_UNIX/SOCK_RAW sockets
authorLuis Ressel <aranea@aixah.de>
Tue, 25 Jul 2017 19:13:41 +0000 (15:13 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 25 Jul 2017 19:13:41 +0000 (15:13 -0400)
commit2a764b529ae57bed61da2c90ff132b9fec97f80b
tree7b9b406884054bee958a81addab19bccc6d4fe03
parent31368ce83c59a5422ee621a38aeea98142d0ecf7
selinux: Assign proper class to PF_UNIX/SOCK_RAW sockets

For PF_UNIX, SOCK_RAW is synonymous with SOCK_DGRAM (cf.
net/unix/af_unix.c). This is a tad obscure, but libpcap uses it.

Signed-off-by: Luis Ressel <aranea@aixah.de>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c