Bug 1247771 - SELinux is preventing /usr/libexec/mission-control-5 from read, write access on the chr_file /dev/tty2.
SELinux is preventing /usr/libexec/mission-control-5 from read, write access ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-07-28 16:28 EDT by Casey Dahlin
Modified: 2016-07-19 13:14 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 13:14:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Casey Dahlin 2015-07-28 16:28:17 EDT
Description of problem:
SELinux is preventing /usr/libexec/mission-control-5 from read, write access on the chr_file /dev/tty2.

*****  Plugin leaks (86.2 confidence) suggests   *****************************

If you want to ignore mission-control-5 trying to read write access the tty2 chr_file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
# grep /usr/libexec/mission-control-5 /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests   **************************

If you believe that mission-control-5 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.
allow this access for now by executing:
# grep mission-control /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:telepathy_mission_control_t:s0-s0:
Target Context                staff_u:object_r:user_tty_device_t:s0
Target Objects                /dev/tty2 [ chr_file ]
Source                        mission-control
Source Path                   /usr/libexec/mission-control-5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           telepathy-mission-control-5.16.3-1.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.4.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.7-300.fc22.x86_64 #1 SMP Mon
                              Jun 29 22:15:06 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-07-28 16:25:12 EDT
Last Seen                     2015-07-28 16:25:12 EDT
Local ID                      9e43e44b-634c-4f51-8eff-3504e2b9e236

Raw Audit Messages
type=AVC msg=audit(1438115112.116:515): avc:  denied  { read write } for  pid=2305 comm="mission-control" path="/dev/tty2" dev="devtmpfs" ino=1043 scontext=staff_u:staff_r:telepathy_mission_control_t:s0-s0:c0.c1023 tcontext=staff_u:object_r:user_tty_device_t:s0 tclass=chr_file permissive=0

type=SYSCALL msg=audit(1438115112.116:515): arch=x86_64 syscall=execve success=yes exit=0 a0=7fd4f2dddae0 a1=7fd4f2ddd660 a2=7fd4f2dddb70 a3=8 items=0 ppid=2304 pid=2305 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=mission-control exe=/usr/libexec/mission-control-5 subj=staff_u:staff_r:telepathy_mission_control_t:s0-s0:c0.c1023 key=(null)

Hash: mission-control,telepathy_mission_control_t,user_tty_device_t,chr_file,read,write

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.6.0
hashmarkername: setroubleshoot
kernel:         4.0.7-300.fc22.x86_64
type:           libreport
Comment 1 Fedora End Of Life 2016-07-19 13:14:26 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

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