Bug 671002
| Summary: | SELinux is preventing /usr/sbin/sendmail.sendmail from using the 'execstack' accesses on a process. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nikita Bige <bignikita> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:c19e187c5962c8276d269de9b0017f971d09aca726972f6637e70a9555fd2203 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-24 06:56:31 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: | |||
This does not make much sense unless you have some strange libraries installed. Are you using standard sendmail? Yes, sendmail is standart from fedora repo. I didn't change it *** Bug 671001 has been marked as a duplicate of this bug. *** *** Bug 671011 has been marked as a duplicate of this bug. *** Could you try to look for libraries that are marked as requiring execstack
# find /lib -exec execstack -q {} \; -print 2> /dev/null | grep ^X
# find /usr/lib -exec execstack -q {} \; -print 2> /dev/null | grep ^X
or
# find /lib64 -exec execstack -q {} \; -print 2> /dev/null | grep ^X
# find /usr/lib64 -exec execstack -q {} \; -print 2> /dev/null | grep ^X
# find /lib64 -exec execstack -q {} \; -print 2> /dev/null | grep ^X
# find /usr/lib64 -exec execstack -q {} \; -print 2> /dev/null | grep ^X
X /usr/lib64/nvidia/libcuda.so
X /usr/lib64/nvidia/libnvidia-compiler.so.1
X /usr/lib64/nvidia/libcuda.so.260.19.29
X /usr/lib64/nvidia/libOpenCL.so.1.0.0
X /usr/lib64/nvidia/libnvidia-compiler.so.260.19.29
X /usr/lib64/nvidia/libOpenCL.so.1
X /usr/lib64/nvidia/libcuda.so.1
X /usr/lib64/libnnz11.so
# find /usr/lib -exec execstack -q {} \; -print 2> /dev/null | grep ^X
X /usr/lib/nvidia/libcuda.so
X /usr/lib/nvidia/libnvidia-compiler.so.1
X /usr/lib/nvidia/libcuda.so.260.19.29
X /usr/lib/nvidia/libOpenCL.so.1.0.0
X /usr/lib/nvidia/libnvidia-compiler.so.260.19.29
X /usr/lib/nvidia/libOpenCL.so.1
X /usr/lib/nvidia/libcuda.so.1
X /usr/lib/vmware/bin/vmware-vmx-stats
X /usr/lib/vmware/bin/vmware-vmx-debug
X /usr/lib/vmware/bin/vmware-vmx
# ldconfig -p | awk '{print $4}' | xargs execstack -q 2> /dev/null | grep ^X
X /usr/lib64/nvidia/libnvidia-compiler.so.260.19.29
X /usr/lib/nvidia/libnvidia-compiler.so.260.19.29
X /usr/lib64/libnnz11.so
X /usr/lib64/nvidia/libcuda.so.1
X /usr/lib/nvidia/libcuda.so.1
X /usr/lib64/nvidia/libcuda.so
X /usr/lib/nvidia/libcuda.so
X /usr/local/zend/lib/libcrypto.so.0.9.8 <--- I think that that the culprit has been this library
X /usr/lib64/nvidia/libOpenCL.so.1
X /usr/lib/nvidia/libOpenCL.so.1
If you execute execstack -c /usr/local/zend/lib/libcrypto.so.0.9.8 And everything works correctly you might have solved the problem. You might want to try clearing the flag on all the libraries since they probably do not need them. execstack -c /usr/local/zend/lib/libcrypto.so.0.9.8 solved the problem |
SELinux is preventing /usr/sbin/sendmail.sendmail from using the 'execstack' accesses on a process. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that sendmail.sendmail should be allowed execstack access on processes labeled system_mail_t by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep sendmail /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:system_mail_t:s0-s0:c0.c1023 Target Context system_u:system_r:system_mail_t:s0-s0:c0.c1023 Target Objects Unknown [ process ] Source sendmail Source Path /usr/sbin/sendmail.sendmail Port <Unknown> Host (removed) Source RPM Packages sendmail-8.14.4-10.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-20.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 Alert Count 4 First Seen Mon 17 Jan 2011 06:01:02 PM MSK Last Seen Wed 19 Jan 2011 08:44:50 PM MSK Local ID 9b2d905d-2cba-4d95-9341-e70723b3b93a Raw Audit Messages type=AVC msg=audit(1295459090.453:76): avc: denied { execstack } for pid=29231 comm="sendmail" scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tclass=process sendmail,system_mail_t,system_mail_t,process,execstack type=AVC msg=audit(1295459090.453:76): avc: denied { execmem } for pid=29231 comm="sendmail" scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tclass=process sendmail,system_mail_t,system_mail_t,process,execstack type=SYSCALL msg=audit(1295459090.453:76): arch=x86_64 syscall=mprotect success=yes exit=0 a0=7fff3497e000 a1=1000 a2=1000007 a3=7fd2d6864000 items=0 ppid=5840 pid=29231 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=2 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null) sendmail,system_mail_t,system_mail_t,process,execstack #============= system_mail_t ============== allow system_mail_t self:process { execstack execmem };