Skip to contentSkip to conversation

pppd and net_context

DISCUSSION Carsten Grohmann 1 participant 1 message Sep 15, 2002 2 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Stephen,

last week I add the isdn4linux devices to my selinux rules. That do you think, is the attached patch correct?
The type declaration should be ok, also the netifcon entries. Both are wrote on "Configure the SELinux Policy".
I am not sure with the two allow entries, because I don't found anything about it in the documentation.
And why uses the loopback device the special node_lo_t ?

Thanks

Carsten

Am Donnerstag, 12. September 2002 16:15 schrieben Sie:

Quoted 11 lines · Carsten Grohmann
Quoted 4 lines

Hi Russel,

I missing the attached patch in your policy. This patch is necessary to label the trafic over the ippp0 interface correct.

I have not done anything seriously with network contexts, I am spending all my time working on host based security. So therefore I don't feel that I am qualified to determine whether your patch is suitable for my policy tree.

Quoted 5 lines

I recommend that you send it to Stephen Smalley, if he likes it then I'll put it in my tree too.

Russell Coker

net_contexts renamed from original/net_contexts +1 -0
@@ -53,6 +53,7 @@
 netifcon eth0 system_u:object_r:netif_eth0_t system_u:object_r:netmsg_eth0_t
 netifcon eth1 system_u:object_r:netif_eth1_t system_u:object_r:netmsg_eth1_t
 netifcon eth2 system_u:object_r:netif_eth2_t system_u:object_r:netmsg_eth2_t
+netifcon ippp0 system_u:object_r:netif_ippp0_t system_u:object_r:netmsg_ippp0_t
 netifcon ipsec0 system_u:object_r:netif_ipsec0_t system_u:object_r:netmsg_ipsec0_t
 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
network.te renamed from original/types/network.te +4 -0
@@ -54,6 +54,7 @@
 type netif_eth1_t, netif_type;
 type netif_eth2_t, netif_type;
 type netif_lo_t, netif_type;
+type netif_ippp0_t, netif_type;
 
 type netif_ipsec0_t, netif_type;
 type netif_ipsec1_t, netif_type;
@@ -69,6 +70,7 @@
 type netmsg_eth1_t, netmsg_type;
 type netmsg_eth2_t, netmsg_type;
 type netmsg_lo_t, netmsg_type;
+type netmsg_ippp0_t, netmsg_type;
 
 type netmsg_ipsec0_t, netmsg_type;
 type netmsg_ipsec1_t, netmsg_type;
@@ -116,6 +118,8 @@
 allow netmsg_lo_t node_lo_t:node { tcp_recv udp_recv rawip_recv };
 allow netmsg_lo_t node_t:node { tcp_recv udp_recv rawip_recv };
 allow netmsg_lo_t netif_lo_t:netif { tcp_recv udp_recv rawip_recv };
+allow netmsg_ippp0_t node_t:node { tcp_recv udp_recv rawip_recv };
+allow netmsg_ippp0_t netif_ippp0_t:netif { tcp_recv udp_recv rawip_recv };
 allow netmsg_ipsec0_t node_t:node { tcp_recv udp_recv rawip_recv };
 allow netmsg_ipsec0_t netif_ipsec0_t:node { tcp_recv udp_recv rawip_recv };
 allow netmsg_ipsec1_t node_t:node { tcp_recv udp_recv rawip_recv };