Bug 1383071 - SELinux is preventing gnome-thumbnail from read, write access on the chr_file /dev/tty2.
Summary: SELinux is preventing gnome-thumbnail from read, write access on the chr_file...
Keywords:
Status: CLOSED ERRATA
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:ee173f9ba759b21bf48756f8047...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-09 14:58 UTC by Noam Cohen
Modified: 2016-10-22 07:54 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-191.19.fc24
Clone Of:
Environment:
Last Closed: 2016-10-22 07:54:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Noam Cohen 2016-10-09 14:58:22 UTC
Description of problem:
SELinux is preventing gnome-thumbnail from read, write access on the chr_file /dev/tty2.

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

If you believe that gnome-thumbnail should be allowed read write access on the tty2 chr_file 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:
# ausearch -c 'gnome-thumbnail' --raw | audit2allow -M my-gnomethumbnail
# semodule -X 300 -i my-gnomethumbnail.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tty_device_t:s0
Target Objects                /dev/tty2 [ chr_file ]
Source                        gnome-thumbnail
Source Path                   gnome-thumbnail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.5-200.fc24.x86_64 #1 SMP Mon
                              Sep 26 21:25:47 UTC 2016 x86_64 x86_64
Alert Count                   5
First Seen                    2016-10-09 17:40:43 IDT
Last Seen                     2016-10-09 17:40:43 IDT
Local ID                      7717a03c-ebeb-4221-bdd3-9e7543d91423

Raw Audit Messages
type=AVC msg=audit(1476024043.693:403): avc:  denied  { read write } for  pid=27815 comm="gnome-thumbnail" path="/dev/tty2" dev="devtmpfs" ino=1043 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tty_device_t:s0 tclass=chr_file permissive=0


Hash: gnome-thumbnail,thumb_t,tty_device_t,chr_file,read,write


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

Comment 1 Daniel Walsh 2016-10-10 11:47:09 UTC
Looks like a leaked file descriptor, can probably be dontaudited.

Comment 2 Fedora Update System 2016-10-20 21:59:05 UTC
selinux-policy-3.13.1-191.19.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e035472778

Comment 3 Fedora Update System 2016-10-22 07:54:46 UTC
selinux-policy-3.13.1-191.19.fc24 has been pushed to the Fedora 24 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.