From: Matus Marhefka <mmarhefk@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] Test case "netns_2children" fails under SELinux MLS
Date: Mon, 13 Oct 2014 13:34:27 -0400 (EDT) [thread overview]
Message-ID: <2053896520.50998554.1413221667648.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <375295843.50995847.1413221141839.JavaMail.zimbra@redhat.com>
Hi,
I got fail for TC netns_2children (under kernel/containers/netns) when using SELinux policy MLS in enforcing mode:
netns_child_2.sh 1 TFAIL : FAIL: Unable to ping Child1NS from Child2NS !
netns_child_1.sh 1 TFAIL : CHILD2 is unable to reach CHILD1
netns_2children 1 TFAIL : netns_two_children_ns.c:125: waitpid() returns 22672, errno 255
..but it passes for permissive mode (setenforce 0), so I can either report bug on SELinux policy
or we must test this TC in permissive mode. I think reporting bug on SELinux policy is better solution,
what do you think ?
More details (after test fail):
# ausearch -m avc -ts recent | grep ping
type=SYSCALL msg=audit(1413219951.925:1481): arch=c000003e syscall=46 success=yes exit=64 a0=5 a1=7fc90a490160 a2=0 a3=0 items=0 ppid=21088 pid=21167 auid=995 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=17 comm="ping" exe="/usr/bin/pin " subj=staff_u:lspp_test_r:lspp_harness_t:s0-s15:c0.c1023 key=(null)
type=AVC msg=audit(1413219951.925:1481): avc: denied { egress } for pid=21167 comm= ping" saddr=192.168.0.184 daddr=192.168.0.182 netif=veth0 scontext=system_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:netif_t:s0-s15:c0.c1023 tclass=netif
# ausearch -m avc -ts recent | grep ping | audit2allow
#============= unlabeled_t ==============
allow unlabeled_t netif_t:netif egress;
Thanks,
Matus Marhefka
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next parent reply other threads:[~2014-10-13 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <375295843.50995847.1413221141839.JavaMail.zimbra@redhat.com>
2014-10-13 17:34 ` Matus Marhefka [this message]
2014-10-14 10:03 ` [LTP] Test case "netns_2children" fails under SELinux MLS Jan Stancek
2014-10-16 12:27 ` Matus Marhefka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2053896520.50998554.1413221667648.JavaMail.zimbra@redhat.com \
--to=mmarhefk@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox