Skip to contentSkip to conversation

iptables and assertions

DISCUSSION Russell Coker 2 participants 2 messages Dec 24, 2004 – Jan 5, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

allow iptables_t bin_t:file { execute execute_no_trans };

The above line has been in the iptables policy for ages (I think since it was ipchains_t). Is it still needed? My tests seem to indicate that it is not needed any more.

If we remove the above line we can add the following to assert.te:
ifdef(iptables.te', assert_execute(iptables)')

Also the following seems appropriate for assert.te:
ifdef(ifconfig.te', assert_execute(ifconfig)')

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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 2 lines · Russell Coker

allow iptables_t bin_t:file { execute execute_no_trans };

I've removed this rule for now.

Quoted 9 lines

The above line has been in the iptables policy for ages (I think since it was ipchains_t). Is it still needed? My tests seem to indicate that it is not needed any more.

If we remove the above line we can add the following to assert.te:
ifdef(iptables.te', assert_execute(iptables)')

Also the following seems appropriate for assert.te:
ifdef(ifconfig.te', assert_execute(ifconfig)')

Signature · 7 lines
James Carter <[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.