Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1061852 - SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on the file /var/lib/AccountsService/users/gdm.
Summary: SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:78e2c5618096887bd2b87fe4ccf...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-02-05 18:32 UTC by Jeremy Harris
Modified: 2014-02-06 00:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-02-06 00:07:51 UTC

Attachments (Terms of Use)

Description Jeremy Harris 2014-02-05 18:32:07 UTC
Description of problem:
Immediately on login
SELinux is preventing /usr/libexec/accounts-daemon from 'getattr' accesses on the file /var/lib/AccountsService/users/gdm.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/var/lib/AccountsService/users/gdm default label should be accountsd_var_lib_t.
Then you can run restorecon.
# /sbin/restorecon -v /var/lib/AccountsService/users/gdm

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that accounts-daemon should be allowed getattr access on the gdm 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 accounts-daemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:alsa_var_lib_t:s0
Target Objects                /var/lib/AccountsService/users/gdm [ file ]
Source                        accounts-daemon
Source Path                   /usr/libexec/accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           accountsservice-0.6.35-4.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-119.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.9-301.fc20.x86_64 #1 SMP Wed
                              Jan 29 15:56:22 UTC 2014 x86_64 x86_64
Alert Count                   18
First Seen                    2014-02-05 09:12:04 GMT
Last Seen                     2014-02-05 18:30:07 GMT
Local ID                      a0c11e19-3288-4983-a3ce-47b09afe93e4

Raw Audit Messages
type=AVC msg=audit(1391625007.256:523): avc:  denied  { getattr } for  pid=646 comm="accounts-daemon" path="/var/lib/AccountsService/users/gdm" dev="dm-1" ino=271499 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:alsa_var_lib_t:s0 tclass=file

type=SYSCALL msg=audit(1391625007.256:523): arch=x86_64 syscall=stat success=no exit=EACCES a0=7f6a899858f0 a1=7fffb2184370 a2=7fffb2184370 a3=0 items=0 ppid=1 pid=646 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=accounts-daemon exe=/usr/libexec/accounts-daemon subj=system_u:system_r:accountsd_t:s0 key=(null)

Hash: accounts-daemon,accountsd_t,alsa_var_lib_t,file,getattr

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.12.9-301.fc20.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-02-06 00:07:51 UTC
As I said in here #1061854 use restorecon to fix your bug.

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