Bug 728412 - SELinux is preventing /bin/login from 'create' accesses on the file .pam-systemd-lock.
Summary: SELinux is preventing /bin/login from 'create' accesses on the file .pam-syst...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:876a49e70e4...
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-05 03:13 UTC by John Antony
Modified: 2011-08-05 13:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-08-05 13:10:54 UTC

Attachments (Terms of Use)

Description John Antony 2011-08-05 03:13:54 UTC
SELinux is preventing /bin/login from 'create' accesses on the file .pam-systemd-lock.

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

If you believe that login should be allowed create access on the .pam-systemd-lock file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep login /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:local_login_t:s0-s0:c0.c1023
Target Context                system_u:object_r:user_tmp_t:s0
Target Objects                .pam-systemd-lock [ file ]
Source                        login
Source Path                   /bin/login
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.19.1-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-13.fc17
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.1.0-0.rc0.git17.1.fc17.i686 #1 SMP
                              Tue Aug 2 17:07:57 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Thu 04 Aug 2011 02:57:58 AM NPT
Last Seen                     Thu 04 Aug 2011 11:53:21 PM NPT
Local ID                      3ee0563a-e346-4c53-848d-d36858f77bd2

Raw Audit Messages
type=AVC msg=audit(1312481301.1:37): avc:  denied  { create } for  pid=1392 comm="login" name=".pam-systemd-lock" scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_tmp_t:s0 tclass=file

type=SYSCALL msg=audit(1312481301.1:37): arch=i386 syscall=open success=no exit=EACCES a0=4c2f04 a1=a8142 a2=180 a3=89800d0 items=0 ppid=1 pid=1392 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty1 ses=1 comm=login exe=/bin/login subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 key=(null)

Hash: login,local_login_t,user_tmp_t,file,create


#============= local_login_t ==============
allow local_login_t user_tmp_t:file create;

audit2allow -R

#============= local_login_t ==============
allow local_login_t user_tmp_t:file create;

Comment 1 Daniel Walsh 2011-08-05 13:10:54 UTC
Fixed in selinux-policy-3.10.0-17.fc17

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