Skip to contentSkip to conversation

Relabeling Network Objects ?

DISCUSSION Rodrigo Vivi 2 participants 2 messages Jun 9, 2006 – Jun 12, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi folks,

Is it possible to relabel a network object {netif, node} ? if yes, how can I do it ?

Or can I easily change the context assigned on creation of an specific {netif, node} like a tun interface with a specific address ??

Thanks in advance.

vivijim.

--
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 · Rodrigo Vivi

Hi folks,

Is it possible to relabel a network object {netif, node} ? if yes, how can I do it ?

Or can I easily change the context assigned on creation of an specific {netif, node} like a tun interface with a specific address ??

You can assign a security context to a specific netif or node via semanage. This will then rebuild the policy with that definition and load it into the kernel. Subsequent network permission checks should then use the assigned security context.

Note however that the new SECMARK mechanism largely obsoletes the use of netif and node contexts going forward.

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.