Bug 1391416 - SELinux is preventing accounts-daemon from 'unlink' accesses on the file gdm.
Summary: SELinux is preventing accounts-daemon from 'unlink' accesses on the file gdm.
Keywords:
Status: CLOSED DUPLICATE of bug 1391385
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f1600f8b2b54a1744152554d06c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-03 09:38 UTC by krp
Modified: 2016-11-07 19:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 19:53:05 UTC
Type: ---


Attachments (Terms of Use)

Description krp 2016-11-03 09:38:49 UTC
Description of problem:
I just turn off SELinux reboot, then turn on SELinux, reboot, and have this issue
SELinux is preventing accounts-daemon from 'unlink' accesses on the file gdm.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow accounts-daemon to have unlink access on the gdm file
Then необходимо изменить метку на gdm
Do
# semanage fcontext -a -t FILE_TYPE 'gdm'
where FILE_TYPE is one of the following: accountsd_var_lib_t, xdm_etc_t.
Then execute:
restorecon -v 'gdm'


*****  Plugin catchall (17.1 confidence) suggests   **************************

If вы считаете, что accounts-daemon следует разрешить доступ unlink к gdm file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon
# semodule -X 300 -i my-accountsdaemon.pp

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                gdm [ file ]
Source                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.19.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.7.9-200.fc24.x86_64 #1 SMP Thu
                              Oct 20 14:26:16 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-01 14:41:26 EET
Last Seen                     2016-11-01 14:41:26 EET
Local ID                      23f8137c-d3a1-485b-9b2a-9dcc4f8425e3

Raw Audit Messages
type=AVC msg=audit(1478004086.449:168): avc:  denied  { unlink } for  pid=1324 comm="accounts-daemon" name="gdm" dev="sda5" ino=810151 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1


Hash: accounts-daemon,accountsd_t,unlabeled_t,file,unlink

Version-Release number of selected component:
selinux-policy-3.13.1-191.19.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.9-200.fc24.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-11-07 19:53:05 UTC

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


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