Bug 460970
Summary: | "semanage translation -a" causes denials; setrans.conf mode changed | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Murray McAllister <mmcallis> | ||||
Component: | policycoreutils | Assignee: | Miroslav Grepl <mgrepl> | ||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.3 | CC: | dwalsh, mmalik, ohudlick, sdsmall, shaines, syeghiay, vdanen | ||||
Target Milestone: | rc | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | policycoreutils-1.33.12-14.8.el5 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-03-30 08:13:08 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Murray McAllister
2008-09-03 02:26:08 UTC
Created attachment 315612 [details]
AVC denials
Fixed in selinux-policy-3.5.7-1.fc10 Woops wrong bug. Some of this is fixed in 5.3 policy but needs to be completed in 5.4. Fixed in policycoreutils-1.33.12-14.4.el5 Fixed in selinux-policy-2.4.6-246.el5 Following 2 commands are part of /CoreOS/policycoreutils/Regression/bz460970-semanage-translation-a-causes-denials test. # semanage translation -a -T secret s0:c2 env: /etc/init.d/mcstrans: Permission denied # echo $? 0 # semanage translation -d -T secret s0:c2 env: /etc/init.d/mcstrans: Permission denied # echo $? 0 Each of them generated 1 AVC: ---- time->Tue Jul 21 11:26:45 2009 type=SYSCALL msg=audit(1248190005.385:52): arch=c0000032 syscall=1033 success=no exit=-13 a0=60000fffffaefb28 a1=60000fffffaef8b0 a2=6000000000009030 a3=710 items=0 ppid=10227 pid=10232 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="env" exe="/bin/env" subj=root:system_r:semanage_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1248190005.385:52): avc: denied { transition } for pid=10232 comm="env" path="/etc/rc.d/init.d/mcstrans" dev=sda2 ino=2491075 scontext=root:system_r:semanage_t:s0-s0:c0.c1023 tcontext=root:system_r:semanage_t:s0 tclass=process ---- time->Tue Jul 21 11:26:46 2009 type=SYSCALL msg=audit(1248190006.218:53): arch=c0000032 syscall=1033 success=no exit=-13 a0=60000fffffeabb28 a1=60000fffffeab8b0 a2=6000000000009030 a3=710 items=0 ppid=10253 pid=10258 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="env" exe="/bin/env" subj=root:system_r:semanage_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1248190006.218:53): avc: denied { transition } for pid=10258 comm="env" path="/etc/rc.d/init.d/mcstrans" dev=sda2 ino=2491075 scontext=root:system_r:semanage_t:s0-s0:c0.c1023 tcontext=root:system_r:semanage_t:s0 tclass=process ---- Reproduced on RHEL5.4-Server-20090720.nightly machine with following packages installed: # rpm -qf /etc/rc.d/init.d/mcstrans mcstrans-0.2.11-3.el5 # rpm -qa 'selinux-policy*' selinux-policy-targeted-2.4.6-253.el5 selinux-policy-2.4.6-253.el5 # rpm -qa 'libselinux*' libselinux-devel-1.33.4-5.5.el5 libselinux-utils-1.33.4-5.5.el5 libselinux-python-1.33.4-5.5.el5 libselinux-1.33.4-5.5.el5 # rpm -qa 'libsemanage*' libsemanage-1.9.1-4.3.el5 # rpm -qa 'policycoreutils*' policycoreutils-1.33.12-14.5.el5 # rpm -qa 'libsepol*' libsepol-1.15.2-2.el5 libsepol-devel-1.15.2-2.el5 Fixed in policycoreutils-1.33.12-14.7.el5 Fixed in policycoreutils-1.33.12-14.8.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0208.html |