Skip to contentSkip to conversation

IGMP being blocked

DISCUSSION Russell Coker 3 participants 3 messages Jun 13, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41 netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:netif_t tclass=netif

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41 netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:node_t tclass=node

I am seeing the above in my logs regularly on a server that I have just upgraded to the latest LSM with IPSec (which I have not enabled).

It seems that IGMP code is being run as unlabeled_t.

Any ideas on what to do with this?

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · Russell Coker

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41 netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:netif_t tclass=netif

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41 netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:node_t tclass=node

Quoted 6 lines

I am seeing the above in my logs regularly on a server that I have just upgraded to the latest LSM with IPSec (which I have not enabled).

It seems that IGMP code is being run as unlabeled_t.

Any ideas on what to do with this?

I think that what is happening here is that the IGMP code is allocating a skb and sending it without ever associating it with a sending socket. Normally, a skb is initially tagged with the unlabeled SID upon allocation and later tagged with a SID derived from the sending socket upon skb_set_owner_w. Notice that the IGMP code differs from the ICMP code, which uses a kernel ICMP socket for sends. I suppose that we could try to detect these packets in selinux_ip_output_first and then assign them an initial SID for IGMP traffic.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
In reply to Russell Coker

Hello,

Yes this LOOKS like multicast addresses. You can disable them by either turning that feature off or adding a few lines of code

"$IPTABLES" -A INPUT -d 224.0.0.0/4 -J DROP

Would be interesting to see the log that iptables give in this case (to further know what's going on here)

Ed

Quoted 18 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Russell Coker
Sent: Thursday, June 13, 2002 5:53 AM
To: SE Linux
Subject: IGMP being blocked

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41
netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:netif_t tclass=netif

avc: denied { rawip_send } for saddr=213.84.71.248 daddr=224.0.1.41
netif=ppp0 scontext=system_u:object_r:unlabeled_t tcontext=system_u:object_r:node_t tclass=node

Quoted 21 lines

I am seeing the above in my logs regularly on a server that I have just
upgraded to the latest LSM with IPSec (which I have not enabled).

It seems that IGMP code is being run as unlabeled_t.

Any ideas on what to do with this?

Signature · 4 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in 
your address-book so that WHEN you get a virus it won't use 
my address in the
Quoted 1 line

From field.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.