Bug 673239 - SELinux is preventing /usr/sbin/nscd from 'execmod' accesses on the file /usr/sbin/nscd.
Summary: SELinux is preventing /usr/sbin/nscd from 'execmod' accesses on the file /usr...
Keywords:
Status: CLOSED DUPLICATE of bug 672602
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:5f8b5a5fe45...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-27 19:39 UTC by Adam Williamson
Modified: 2016-11-24 15:35 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-27 21:18:32 UTC
Type: ---


Attachments (Terms of Use)

Description Adam Williamson 2011-01-27 19:39:24 UTC
SELinux is preventing /usr/sbin/nscd from 'execmod' accesses on the file /usr/sbin/nscd.

*****  Plugin allow_execmod (91.4 confidence) suggests  **********************

If you want to allow nscd to have execmod access on the nscd file
Then you need to change the label on '/usr/sbin/nscd'
Do
# semanage fcontext -a -t textrel_shlib_t '/usr/sbin/nscd'
# restorecon -v '/usr/sbin/nscd'

*****  Plugin catchall (9.59 confidence) suggests  ***************************

If you believe that nscd should be allowed execmod access on the nscd 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 nscd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:nscd_t:s0
Target Context                system_u:object_r:nscd_exec_t:s0
Target Objects                /usr/sbin/nscd [ file ]
Source                        nscd
Source Path                   /usr/sbin/nscd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nscd-2.13.90-1
Target RPM Packages           nscd-2.13.90-1
Policy RPM                    selinux-policy-3.9.13-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-0.rc2.git5.1.fc15.x86_64 #1 SMP
                              Thu Jan 27 01:48:49 UTC 2011 x86_64 x86_64
Alert Count                   6
First Seen                    Thu 27 Jan 2011 11:01:08 AM PST
Last Seen                     Thu 27 Jan 2011 11:38:02 AM PST
Local ID                      f4054428-d5a8-4dec-8caf-69dfb2c5a232

Raw Audit Messages
type=AVC msg=audit(1296157082.471:66): avc:  denied  { execmod } for  pid=2898 comm="nscd" path="/usr/sbin/nscd" dev=dm-0 ino=67263 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:nscd_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1296157082.471:66): arch=x86_64 syscall=mprotect success=yes exit=0 a0=7f5c477c7000 a1=21000 a2=5 a3=7f5c4739e858 items=0 ppid=1053 pid=2898 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=nscd exe=/usr/sbin/nscd subj=system_u:system_r:nscd_t:s0 key=(null)

Hash: nscd,nscd_t,nscd_exec_t,file,execmod

audit2allow

#============= nscd_t ==============
allow nscd_t nscd_exec_t:file execmod;

audit2allow -R

#============= nscd_t ==============
allow nscd_t nscd_exec_t:file execmod;

Comment 1 Adam Williamson 2011-01-27 19:40:20 UTC
I'd just connected to a wireless network with NetworkManager-gnome.

Comment 2 Daniel Walsh 2011-01-27 21:18:32 UTC

*** This bug has been marked as a duplicate of bug 672602 ***


Note You need to log in before you can comment on or make changes to this bug.