Bug 1031860 - [PATCH] Fix drm master and inputs passing from logind via dbus
Summary: [PATCH] Fix drm master and inputs passing from logind via dbus
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-19 01:48 UTC by Lubomir Rintel
Modified: 2013-12-06 15:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-06 15:22:44 UTC
Type: Bug


Attachments (Terms of Use)
logind part (867 bytes, patch)
2013-11-19 01:48 UTC, Lubomir Rintel
no flags Details | Diff
dbus part (630 bytes, text/plain)
2013-11-19 01:48 UTC, Lubomir Rintel
no flags Details

Description Lubomir Rintel 2013-11-19 01:48:21 UTC
Created attachment 825869 [details]
logind part

Required to make recent weston work. It uses the TakeDevice [1] API to open the seat devices it needs, namely DRM master and input event devices.

[1] http://www.freedesktop.org/wiki/Software/systemd/logind/

Unfortunately it works by passing an open file descriptor via DBus, so an AVC for dbus is generated. For now no other devices are needed though.

#============= system_dbusd_t ==============

allow system_dbusd_t dri_device_t:chr_file { read write };
allow system_dbusd_t event_device_t:chr_file { read write };

#============= systemd_logind_t ==============

allow systemd_logind_t dri_device_t:chr_file { read write ioctl open };

Comment 1 Lubomir Rintel 2013-11-19 01:48:55 UTC
Created attachment 825870 [details]
dbus part

Comment 2 Miroslav Grepl 2013-12-06 15:22:44 UTC
Added to rawhide.


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