Skip to contentSkip to conversation

How can i remove net_raw capability from unconfined?

DISCUSSION Gmail 2 participants 2 messages Sep 20, 2015 – Sep 21, 2015 SELinux security module

lore
Share & tools
lore

Gmail

author
#0 lore raw

Hi,

I need to understand how can i remove net_raw capability from unconfined_t domain, someone can help me?

I need the source policy? Or can i remove another way? The systems are RHEL 6 and RHEL 7.

Thanks in advance,

Maurizio Pagani (LordFire in #SELinux)

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

#1 lore raw
Quoted 9 lines · Gmail

Hi,

I need to understand how can i remove net_raw capability from unconfined_t domain, someone can help me?

I need the source policy? Or can i remove another way? The systems are RHEL 6 and RHEL 7.

Yes, you would need to download the policy sources, modify the unconfined policy module, rebuild it, and install your modified version.

It may be easier to instead define a new domain of your own that is allowed everything but net_raw.