Skip to contentSkip to conversation

How SELinux label packet by default?

DISCUSSION Park Lee 2 participants 2 messages Jan 18, 2005 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw

Hi,
In initial_sid_contexts, there seems no default
packet SID. Then,
(here, let's don't take IPsec protection into
account)
1) When a packet is sending or receiving, Does
SELinux label the packet and then control the sending/receiving packet according to the label? or just ignore it?
2) When an unlabeled packet is received from a node,
What default packet SID will SELinux set to the packet ?
Is it still be as "When a message is sent on a
socket, it inherits the SID of the sending socket by default. When the network component receives a message from the network, the SID of the message is initially set to a default message SID associated with the receiving network interface." as is described in subsection 8.1.1 of "Integrating Flexible Support for Security Policies into the Linux Operating System"

Thank you.

=====
Best Regards,
Park Lee

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

--
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.

#1 lore raw
Quoted 12 lines · Park Lee

Hi,
In initial_sid_contexts, there seems no default
packet SID. Then,
(here, let's don't take IPsec protection into
account)
1) When a packet is sending or receiving, Does
SELinux label the packet and then control the sending/receiving packet according to the label? or just ignore it?
2) When an unlabeled packet is received from a node,
What default packet SID will SELinux set to the packet ?

Quoted 8 lines

Is it still be as "When a message is sent on a
socket, it inherits the SID of the sending socket by default. When the network component receives a message from the network, the SID of the message is initially set to a default message SID associated with the receiving network interface." as is described in subsection 8.1.1 of "Integrating Flexible Support for Security Policies into the Linux Operating System"

As I've explained previously, the security fields and hooks needed to label and control sk_buff's (i.e. messages) were not accepted into mainline Linux 2.6, so that code was dropped out of SELinux. SELinux network access control checks were redesigned by James Morris in 2.6.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.