Bug 808076 - SELinux is preventing useradd from 'open' accesses on the file lastlog.
Summary: SELinux is preventing useradd from 'open' accesses on the file lastlog.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:45859650a0067bc589452e0165e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-29 13:53 UTC by Dale Turner
Modified: 2012-03-29 17:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-29 17:20:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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