All of lore.kernel.org
 help / color / mirror / Atom feed
* selinux control for network interface using SOCK_RAW
@ 2013-12-18 15:49 Andy Ruch
  2013-12-18 17:31 ` Colin Powers
  2013-12-18 20:21 ` Paul Moore
  0 siblings, 2 replies; 8+ messages in thread
From: Andy Ruch @ 2013-12-18 15:49 UTC (permalink / raw)
  To: SELinux ML

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

Hello,

I'm trying to restrict an application to only have access to some network interfaces. I'm running a custom policy on a RHEL 6.3 system. The application is opening the socket as AF_PACKET and SOCK_RAW. However, selinux doesn't seem to be controlling any raw access to the interfaces.

I've confirmed using apol that there are no rules for the interface type that would allow access. I've also confirmed that the only attribute on the interface is netif_type and that the only access to netif_type is from kernel_t. 


I've granted the application:
    allow my_app_t self:packet_socket { connected_socket_perms };
    allow my_app_t  self:capability { net_raw };

I was expecting to have to do something like:
    allow my_app_t my_iface_t:netif { some_permission };


Is there any way for me to enforce network interface separation? Or does packet_socket always allow access to all interfaces?


Thanks,
Andy Ruch

[-- Attachment #2: Type: text/html, Size: 5706 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-12-19 21:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 15:49 selinux control for network interface using SOCK_RAW Andy Ruch
2013-12-18 17:31 ` Colin Powers
2013-12-18 17:47   ` Andy Ruch
2013-12-18 20:21 ` Paul Moore
2013-12-18 20:37   ` Andy Ruch
2013-12-18 21:14     ` Paul Moore
2013-12-19 20:48       ` Andy Ruch
2013-12-19 21:45         ` Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.