netif and node check in RHEL5
Hello,
I wonder that whether node and netif are checked in RHEL5 or not. I tried to add some auditallow sentences in RHEL4 at first.
Quoted 2 lines
auditallow
unconfined_tnode_type: node *; auditallowunconfined_tnetif_type:netif *;
and executeed some commands such as,
Quoted 2 lines
nc -p -l 8888
echo "testtest" | nc 127.0.0.1 8888
Then, SELinux generated granted logs such as,
Quoted 1 line
localhost kernel: audit(1190468263.024:250): avc: granted {
tcp_send}
for pid=6057 comm="nc" name="bash" dev=dm-0 ino=686823 scontext=root:system_r:unconfind_t tcontext=root:system_r:node_t tclass=node
I tried same thing in RHEL5. but no granted logs are found in /var/log/audit/audit.log.
I created module like below, and after compiling the module, tried "semodule -i test.pp".
Quoted 10 lines
policy_module(test, 1.0.0)gen_require{
attributenode_type;
attributenetif_type;
typeunconfined_t;
}
auditallowunconfined_tnode_type:node *; auditallowunconfined_tnetif_type:netif *;( fc and if file are empty.)
I thought subject domain was not unconfined_t, so I confirmed what user security context was.
But I logined root( unconfined_t )
Anyway, Does SELinux in RHEL5 checks node and netif ? or just my mistake?
Regards,
K
Take a perfect family vacation to Orlando. Click Here.
<http://tagline.bidsystem.com/fc/Ioyw36XIxjaEAYbNOPV0Zq9V2bkt0YOrGFBXvN6
j0K6aTh5Me2S2sL/>
<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the FREE email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span>
Quoted 1 line · Takesi satoh
I wonder that whether node and netif are checked in RHEL5 or not.
Hello,
I believe RHEL5 makes use of secmark controls instead of the node/netif checks (the RH folks can correct me if I am wrong). You can enable the node/netif checks in place of secmark if you want by enabling "compat_net" ...
# echo 1 > /selinux/compat_net
Signature · 7 lines
paul moore linux @ 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.