Bug 699330 - SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /usr/bin/chage.
Summary: SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /usr/...
Keywords:
Status: CLOSED DUPLICATE of bug 708897
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:cbb6284a4d1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-25 07:22 UTC by geminic86
Modified: 2011-05-31 08:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 08:10:45 UTC
Type: ---


Attachments (Terms of Use)

Description geminic86 2011-04-25 07:22:19 UTC
SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /usr/bin/chage.

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

If you believe that ruby should be allowed getattr 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                          <Unknown>
Host                          (removed)
Source RPM Packages           ruby-1.8.7.334-1.fc15
Target RPM Packages           shadow-utils-4.1.4.2-11.fc15
Policy RPM                    selinux-policy-3.9.16-16.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.3-18.fc15.x86_64 #1 SMP Fri
                              Apr 22 13:24:23 UTC 2011 x86_64 x86_64
Alert Count                   8
First Seen                    Sun 24 Apr 2011 03:20:56 PM EDT
Last Seen                     Sun 24 Apr 2011 08:18:53 PM EDT
Local ID                      27173c7b-9004-448b-ae68-6d5669c5fae1

Raw Audit Messages
type=AVC msg=audit(1303690733.853:62): avc:  denied  { getattr } for  pid=2137 comm="puppetmasterd" path="/usr/bin/chage" dev=dm-1 ino=141821 scontext=system_u:system_r:puppetmaster_t:s0 tcontext=system_u:object_r:passwd_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1303690733.853:62): arch=x86_64 syscall=stat success=no exit=EACCES a0=24bbf70 a1=7fff27474e70 a2=7fff27474e70 a3=0 items=0 ppid=2136 pid=2137 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,getattr

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-04-25 13:00:36 UTC
Is puppetmaster actually trying to change the passwd records?

Comment 2 Miroslav Grepl 2011-05-30 08:10:45 UTC

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


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