Skip to contentSkip to conversation

Prism wlan-ng device operation on SEL

PATCH forrest whitcher 1 participant 1 message Apr 7, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

I'm getting the likes of the following

avc:  denied  { tcp_recv } for  pid=189 exe=/usr/bin/galeon-bin saddr=x.x.x.x source=17664 daddr=y.y.y.y dest=52 netif=wlan0 scontext=system_u:object_r:netmsg_wlan0_t tcontext=system_u:object_r:netif_wlan0_t tclass=netif
avc:  denied  { tcp_recv } for  saddr=x.x.x.x source=17664 daddr=y.y.y.y dest=1428 netif=wlan0 scontext=system_u:object_r:netmsg_wlan0_t tcontext=system_u:object_r:netif_wlan0_t tclass=netif
avc:  denied  { tcp_send } for  saddr=x.x.x.x source=38149 daddr=64.236.41.7 dest=80 netif=wlan0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:netif_wlan0_t tclass=netif
avc:  denied  { tcp_send } for  saddr=x.x.x.x source=38149 daddr=64.236.41.7 dest=80 netif=wlan0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:node_t tclass=node

the wlan-ng prism drivers create wlan[N] devices, not eth[N]. I've added the following changes to the policy to no apparent effect/change, however
make policy ; make reload did not seem to acutally be reading the
changed files? -- at least as reported by ls -lut

Ideas?

thanks, forrest

Updated policy files:

policy/net_contexts 2003-04-03 16:22:12.000000000 -0400 renamed from net_contexts 2003-01-18 08:12:45.000000000 -0500 +4 -0
@@ -87,6 +87,10 @@
 netifcon ipsec1 system_u:object_r:netif_ipsec1_t system_u:object_r:netmsg_ipsec1_t
 netifcon ipsec2 system_u:object_r:netif_ipsec2_t system_u:object_r:netmsg_ipsec2_t
 
+netifcon wlan0 system_u:object_r:netif_wlan0_t system_u:object_r:netmsg_wlan0_t
+netifcon wlan1 system_u:object_r:netif_wlan1_t system_u:object_r:netmsg_wlan1_t
+netifcon wlan2 system_u:object_r:netif_wlan2_t system_u:object_r:netmsg_wlan2_t
+
 # Nodes (default = initial SID 'node')
 #
 # address mask context
policy/types/network.te 2003-04-03 16:23:58.000000000 -0400 renamed from network.te 2003-01-18 08:12:45.000000000 -0500 +16 -0
@@ -135,3 +135,19 @@
 `allow ping_t netif_type:netif { rawip_send rawip_recv };
 allow ping_t node_type:node { rawip_send rawip_recv };
 allow ping_t netmsg_type:rawip_socket { recvfrom };')
+
+#
+# wlan-ng interface defnintions, permissions 
+#
+type netif_wlan0_t, netif_type;
+type netif_wlan1_t, netif_type;
+type netif_wlan2_t, netif_type;
+type netmsg_wlan0_t, netmsg_type;
+type netmsg_wlan1_t, netmsg_type;
+type netmsg_wlan2_t, netmsg_type;
+allow netmsg_wlan0_t node_t:node { tcp_recv udp_recv rawip_recv };
+allow netmsg_wlan0_t netif_eth0_t:netif { tcp_recv udp_recv rawip_recv };
+allow netmsg_wlan1_t node_t:node { tcp_recv udp_recv rawip_recv };
+allow netmsg_wlan1_t netif_eth1_t:netif { tcp_recv udp_recv rawip_recv };
+allow netmsg_wlan2_t node_t:node { tcp_recv udp_recv rawip_recv };
+allow netmsg_wlan2_t netif_eth2_t:netif { tcp_recv udp_recv rawip_recv };

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.