Bug 1016664 - SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the file.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e964ac6fc5b540dadb74e01ce36...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-08 13:40 UTC by Artemio
Modified: 2013-10-22 05:04 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.10.fc19
Clone Of:
Environment:
Last Closed: 2013-10-22 05:04:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Artemio 2013-10-08 13:40:42 UTC
Description of problem:
SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the file nologin.

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

If você acredita que o gdm-session-worker deva ser permitido acesso de read em nologin file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep gdm-session-wor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:init_var_run_t:s0
Target Objects                nologin [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           gdm-3.8.4-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.4.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.1-200.fc19.x86_64 #1 SMP Sat
                              Sep 14 15:04:51 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-10-07 12:15:29 BRT
Last Seen                     2013-10-07 12:15:29 BRT
Local ID                      d0438abb-2ad2-4d21-8304-38bd5feaec16

Raw Audit Messages
type=AVC msg=audit(1381158929.199:208): avc:  denied  { read } for  pid=10381 comm="gdm-session-wor" name="nologin" dev="tmpfs" ino=252292 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1381158929.199:208): arch=x86_64 syscall=open success=no exit=EACCES a0=7fe980ebed26 a1=0 a2=0 a3=6 items=0 ppid=1423 pid=10381 auid=1000 uid=0 gid=1000 euid=0 suid=0 fsuid=0 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,init_var_run_t,file,read

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.1-200.fc19.x86_64
type:           libreport

Potential duplicate: bug 819347

Comment 1 Daniel Walsh 2013-10-09 13:43:12 UTC
matchpathcon /run/nologin
/run/nologin	system_u:object_r:systemd_logind_var_run_t:s0


Looks like a labeling issue.

Any idea which app created the file?

Comment 2 Daniel Walsh 2013-10-09 13:45:33 UTC

sesearch -T | grep nologin | grep var_run
type_transition unconfined_t var_run_t : file systemd_logind_var_run_t "nologin"; 
type_transition init_t var_run_t : file systemd_logind_var_run_t "nologin"; 
type_transition rpm_script_t var_run_t : file systemd_logind_var_run_t "nologin"

We have these rules to create the content with the correct label.

Are you running acpupsd?

Comment 3 Daniel Walsh 2013-10-09 13:51:09 UTC
bd6ae11e62a6e2344da7a61e7aef732ac5589f19 in git will make sure if systemd_logind creates the file with the correct label.

Comment 4 Lukas Vrabec 2013-10-09 14:20:53 UTC
back ported.

Comment 5 Fedora Update System 2013-10-15 16:02:51 UTC
selinux-policy-3.12.1-74.10.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.10.fc19

Comment 6 Fedora Update System 2013-10-18 20:02:32 UTC
Package selinux-policy-3.12.1-74.10.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.10.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19368/selinux-policy-3.12.1-74.10.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-10-22 05:04:55 UTC
selinux-policy-3.12.1-74.10.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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