| Summary: | SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/sbin/useradd. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | flashl |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:42eb6bd54d26cf324cd4e10b0719bda38eed830fd289b2d535020aa3019cd3ec | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-07 22:40:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Complaint persist after completing the following commands: sudo semanage fcontext -a -t samba_share_t '/usr/sbin/useradd' sudo restorecon -v '/usr/sbin/useradd' sudo setsebool -P samba_domain_controller 1 sudo setsebool -P samba_export_all_rw 1 sudo grep sh /var/log/audit/audit.log | audit2allow -M mypol sudo semodule -i mypol.pp Why did you do it? sudo semanage fcontext -a -t samba_share_t '/usr/sbin/useradd' Is there a setroubleshoot plugin which tells it. Yikes, what prompted you do to this? sudo semanage fcontext -d /usr/sbin/useradd restorecon -v /usr/sbin/useradd THen the booleans should fix your problem. |
SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/sbin/useradd. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that bash should be allowed execute_no_trans access on the useradd file 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 sh /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:system_r:smbd_t:s0 Target Context system_u:object_r:samba_share_t:s0 Target Objects /usr/sbin/useradd [ file ] Source sh Source Path /bin/bash Port <Unknown> Host (removed) Source RPM Packages bash-4.1.7-3.fc14 Target RPM Packages shadow-utils-4.1.4.2-11.fc14 Policy RPM selinux-policy-3.9.7-31.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Mon 07 Mar 2011 03:29:58 AM CST Last Seen Mon 07 Mar 2011 03:29:58 AM CST Local ID 3156ef6d-63d4-4eed-8f6b-07e4b4ece515 Raw Audit Messages type=AVC msg=audit(1299490198.103:38296): avc: denied { execute_no_trans } for pid=3698 comm="sh" path="/usr/sbin/useradd" dev=dm-1 ino=1711722 scontext=unconfined_u:system_r:smbd_t:s0 tcontext=system_u:object_r:samba_share_t:s0 tclass=file type=SYSCALL msg=audit(1299490198.103:38296): arch=x86_64 syscall=execve success=no exit=EACCES a0=a264e0 a1=a26650 a2=a24bb0 a3=1 items=0 ppid=3697 pid=3698 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=sh exe=/bin/bash subj=unconfined_u:system_r:smbd_t:s0 key=(null) Hash: sh,smbd_t,samba_share_t,file,execute_no_trans audit2allow #============= smbd_t ============== allow smbd_t samba_share_t:file execute_no_trans; audit2allow -R #============= smbd_t ============== allow smbd_t samba_share_t:file execute_no_trans;