Bug 1076862 - SELinux is preventing /usr/lib/systemd/systemd-logind from 'unmount' accesses on the filesystem .
Summary: SELinux is preventing /usr/lib/systemd/systemd-logind from 'unmount' accesses...
Keywords:
Status: CLOSED DUPLICATE of bug 1076861
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
high
urgent
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ec1eb7bf08622b68bb7256535b6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-15 20:49 UTC by Luya Tshimbalanga
Modified: 2014-03-16 06:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-16 06:37:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luya Tshimbalanga 2014-03-15 20:49:56 UTC
Description of problem:
Triggered after update. Test done on Rawhide using Gnome Boxes 
SELinux is preventing /usr/lib/systemd/systemd-logind from 'unmount' accesses on the filesystem .

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

If you believe that systemd-logind should be allowed unmount access on the  filesystem 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 systemd-logind /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_logind_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                 [ filesystem ]
Source                        systemd-logind
Source Path                   /usr/lib/systemd/systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-211-1.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-36.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.0-0.rc6.git4.1.fc21.x86_64 #1
                              SMP Fri Mar 14 20:07:37 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-03-15 13:47:13 PDT
Last Seen                     2014-03-15 13:47:13 PDT
Local ID                      d7c4c4db-3cf7-4574-9502-2a1c597ffa02

Raw Audit Messages
type=AVC msg=audit(1394916433.411:378): avc:  denied  { unmount } for  pid=613 comm="systemd-logind" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1394916433.411:378): arch=x86_64 syscall=umount2 success=no exit=EACCES a0=7f7e19b23fe0 a1=2 a2=0 a3=7f7e181a4440 items=0 ppid=1 pid=613 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-logind exe=/usr/lib/systemd/systemd-logind subj=system_u:system_r:systemd_logind_t:s0 key=(null)

Hash: systemd-logind,systemd_logind_t,tmpfs_t,filesystem,unmount

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.14.0-0.rc6.git4.1.fc21.x86_64
type:           libreport

Comment 1 Igor Gnatenko 2014-03-16 06:30:46 UTC
Description of problem:
booted system

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.14.0-0.rc6.git3.1.fc21.x86_64
type:           libreport

Comment 2 Igor Gnatenko 2014-03-16 06:32:54 UTC
I can't see gdm after update systemd and reboot.

After allowing this things - it works again.

Comment 3 Igor Gnatenko 2014-03-16 06:37:12 UTC

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


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