Skip to contentSkip to conversation

NetLabel base SID

DISCUSSION Paul Moore 2 participants 2 messages Sep 20, 2006 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

As discussed earlier I am going to be submitting a patch which converts the NetLabel receive permission from "recv_msg" to "recvfrom". I've also been thinking about a discussion I've had with Venkat about what to use as the NetLabel "base" SID in this particular case (this is ignoring the secid reconciliation work right now as I think we need to have a good solution in place until the secid work is completed).

Currently NetLabel uses the socket's SID which is convienient but may make it difficult to distinguish NetLabel traffic in policy. Venkat suggested using the SECINITSID_UNLABELED as a base but I don't like that approach because of the unlabeled connotation. I believe Stephen suggested at some point using SECINITSID_NETMSG as the base (Stephen, my apologies for not doing this sooner, I didn't fully understand at the time) - any objections?

Signature · 7 lines
paul moore
linux security @ hp

--
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 7 lines · Paul Moore

As discussed earlier I am going to be submitting a patch which converts the NetLabel receive permission from "recv_msg" to "recvfrom". I've also been thinking about a discussion I've had with Venkat about what to use as the NetLabel "base" SID in this particular case (this is ignoring the secid reconciliation work right now as I think we need to have a good solution in place until the secid work is completed).

Quoted 7 lines

Currently NetLabel uses the socket's SID which is convienient but may make it difficult to distinguish NetLabel traffic in policy. Venkat suggested using the SECINITSID_UNLABELED as a base but I don't like that approach because of the unlabeled connotation. I believe Stephen suggested at some point using SECINITSID_NETMSG as the base (Stephen, my apologies for not doing this sooner, I didn't fully understand at the time) - any objections?

Fine with me.

Note that the kernel will ignore changes to initial SID contexts upon a policy reload, so that change in policy won't take affect anyway until the kernel is rebooted.

Signature · 8 lines
Stephen Smalley
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.