Bug 808076

Summary: SELinux is preventing useradd from 'open' accesses on the file lastlog.
Product: [Fedora] Fedora Reporter: Dale Turner <rxguy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:45859650a0067bc589452e0165e543ef3db72d126873b8f39502a3e5e88142d0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-29 17:20:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dale Turner 2012-03-29 13:53:51 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-4.fc16.i686
reason:         SELinux is preventing useradd from 'open' accesses on the file lastlog.
time:           Thu 29 Mar 2012 10:53:23 AM ADT

description:
:SELinux is preventing useradd from 'open' accesses on the file lastlog.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that useradd should be allowed open access on the lastlog 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 useradd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:system_r:useradd_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:var_log_t:s0
:Target Objects                lastlog [ file ]
:Source                        useradd
:Source Path                   useradd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-80.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-4.fc16.i686 #1 SMP Tue Mar
:                              20 18:45:14 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Thu 29 Mar 2012 10:24:18 AM ADT
:Last Seen                     Thu 29 Mar 2012 10:24:18 AM ADT
:Local ID                      72dd540b-f314-40ab-9a26-01244e5ee729
:
:Raw Audit Messages
:type=AVC msg=audit(1333027458.570:169): avc:  denied  { open } for  pid=8553 comm="useradd" name="lastlog" dev="loop0" ino=8879 scontext=unconfined_u:system_r:useradd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
:
:
:Hash: useradd,useradd_t,var_log_t,file,open
:
:audit2allow
:
:#============= useradd_t ==============
:allow useradd_t var_log_t:file open;
:
:audit2allow -R
:
:#============= useradd_t ==============
:allow useradd_t var_log_t:file open;
:

Comment 1 Daniel Walsh 2012-03-29 17:20:21 UTC
restorecon -R -v /var/log

lastlog is mislabeled.