Bug 751602 - SELinux is preventing /usr/bin/ruby from 'execute' accesses on the file /usr/bin/chage.
Summary: SELinux is preventing /usr/bin/ruby from 'execute' accesses on the file /usr/...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:02a14da0986...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-06 07:51 UTC by Ameya Sathe
Modified: 2012-06-26 10:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-26 10:34:56 UTC
Type: ---


Attachments (Terms of Use)

Description Ameya Sathe 2011-11-06 07:51:53 UTC
SELinux is preventing /usr/bin/ruby from 'execute' accesses on the file /usr/bin/chage.

*****  Plugin catchall (100. confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:puppetmaster_t:s0
Target Context                system_u:object_r:passwd_exec_t:s0
Target Objects                /usr/bin/chage [ file ]
Source                        puppetmasterd
Source Path                   /usr/bin/ruby
Port                          <अपरिचित>
Host                          (removed)
Source RPM Packages           ruby-1.8.7.352-1.fc15
Target RPM Packages           shadow-utils-4.1.4.2-13.fc15
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.x86_64 #1
                              SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64
Alert Count                   20
First Seen                    रविवार 06 नोव्हेंबर
                              2011 01:01:17 म.नं. IST
Last Seen                     रविवार 06 नोव्हेंबर
                              2011 01:06:11 म.नं. IST
Local ID                      667df114-71fd-43e1-aa32-efe077566457

Raw Audit Messages
type=AVC msg=audit(1320564971.197:123): avc:  denied  { execute } for  pid=3126 comm="puppetmasterd" name="chage" dev=dm-1 ino=7409 scontext=system_u:system_r:puppetmaster_t:s0 tcontext=system_u:object_r:passwd_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1320564971.197:123): arch=x86_64 syscall=access success=no exit=EACCES a0=2a93e60 a1=1 a2=0 a3=2 items=0 ppid=3125 pid=3126 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=puppetmasterd exe=/usr/bin/ruby subj=system_u:system_r:puppetmaster_t:s0 key=(null)

Hash: puppetmasterd,puppetmaster_t,passwd_exec_t,file,execute

audit2allow

#============= puppetmaster_t ==============
allow puppetmaster_t passwd_exec_t:file execute;

audit2allow -R

#============= puppetmaster_t ==============
allow puppetmaster_t passwd_exec_t:file execute;

Comment 1 Miroslav Grepl 2011-11-07 10:59:32 UTC
Please update to the latest policy release.

yum update selinux-policy-targeted --enablerepo=updates-testing

Comment 2 Ameya Sathe 2012-06-26 10:26:18 UTC
Updated to the latest policy release.
I am no longer seeing the above error.


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