Re: Blocking exec on processes based on arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/10/2018 07:57 AM, Ville Baillie wrote:
Hi,

Does SELinux provide any sort of mechanism for blocking exec on commands
based on their command line arguments?

The proposed use case goes a little like this, allow 'wget' to access
'http://good-server-1/*' and 'http://good-server-2/*' but block access to
other hostnames and log the access type.

I understand there are probably other ways to achieve this but am wondering
if it is possible just using SELinux?

Not based on command line arguments, no. If you wanted to provide SELinux-based control over the network traffic, you could configure iptables SECMARK rules.


_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux