Bug 906773
| Summary: | SELinux drops an error after sendmail installation by yum-builddep | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Aleš Mareček <amarecek> | |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.4 | CC: | dwalsh, lnovich, mmalik | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | selinux-policy-3.7.19-210.el6 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 906825 (view as bug list) | Environment: | ||
| Last Closed: | 2013-11-21 10:15:22 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 906825 | |||
|
Description
Aleš Mareček
2013-02-01 13:02:52 UTC
The problem is do to /bin/yum-builddep not being labeled as rpm_exec_t. But it does point out other issues, basically that we end up with rpm_script_t running as unconfined_u:unconfined_r:rpm_script_t, where we expected this to run as system_r:rpm_script_t. chcon -t rpm_exec_t /usr/bin/yum-builddep Should fix this for now. Ales, could you test it with this labeling? Greetings, I tested it with new context of yum-builddep and it didn't help. ---- time->Tue Feb 5 15:27:58 2013 type=SYSCALL msg=audit(1360096078.606:97): arch=40000003 syscall=11 success=no exit=-13 a0=812bfe8 a1=812a040 a2=812a3f0 a3=812a040 items=0 ppid=18404 pid=18408 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=5 comm="sh" exe="/bin/bash" subj=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 key=(null) type=SELINUX_ERR msg=audit(1360096078.606:97): security_compute_sid: invalid context unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 for scontext=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 tcontext=system_u:object_r:groupadd_exec_t:s0 tclass=process ---- time->Tue Feb 5 15:27:58 2013 type=SYSCALL msg=audit(1360096078.610:98): arch=40000003 syscall=11 success=no exit=-13 a0=812c078 a1=812b850 a2=812a3f0 a3=812b850 items=0 ppid=18404 pid=18410 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=5 comm="sh" exe="/bin/bash" subj=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 key=(null) type=SELINUX_ERR msg=audit(1360096078.610:98): security_compute_sid: invalid context unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 for scontext=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 tcontext=system_u:object_r:useradd_exec_t:s0 tclass=process ---- time->Tue Feb 5 15:28:00 2013 type=SYSCALL msg=audit(1360096080.315:99): arch=40000003 syscall=11 success=no exit=-13 a0=8ad3f58 a1=8ad3de8 a2=8acc488 a3=8ad3de8 items=0 ppid=18422 pid=18424 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=5 comm="make" exe="/bin/bash" subj=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 key=(null) type=SELINUX_ERR msg=audit(1360096080.315:99): security_compute_sid: invalid context unconfined_u:unconfined_r:system_mail_t:s0-s0:c0.c1023 for scontext=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=process :: [ FAIL ] :: Test: Looking for SELinux errors (Expected 1, got 0) # ls -laZ /usr/bin/yum-builddep -rwxr-xr-x. root root system_u:object_r:rpm_exec_t:s0 /usr/bin/yum-builddep I added labeling. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1598.html |