Bug 957246 - SELinux is preventing /usr/bin/totem-video-thumbnailer from using the 'sys_tty_config' capabilities.
Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from using the 'sys_tt...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d69e1334ee9ab96b642fa4db032...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-26 18:06 UTC by Jamie
Modified: 2013-05-21 08:40 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.11.1-95.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-21 08:40:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jamie 2013-04-26 18:06:30 UTC
Description of problem:
running as root (ya I know lol) in default WM and I mounted a HD partition (VFAT) named BACKUP. I was browsing this folder and looking at old saved funny photos and got this error. No biggie.
SELinux is preventing /usr/bin/totem-video-thumbnailer from using the 'sys_tty_config' capabilities.

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

If you believe that totem-video-thumbnailer should have the sys_tty_config capability 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 totem-video-thu /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Objects                 [ capability ]
Source                        totem-video-thu
Source Path                   /usr/bin/totem-video-thumbnailer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-3.6.3-2.fc18.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-91.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.8-202.fc18.i686 #1 SMP Wed Apr
                              17 23:46:26 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-04-26 13:59:05 EDT
Last Seen                     2013-04-26 13:59:05 EDT
Local ID                      c9b80586-2959-4144-95f9-12fe37e3252a

Raw Audit Messages
type=AVC msg=audit(1366999145.135:382): avc:  denied  { sys_tty_config } for  pid=3345 comm="totem-video-thu" capability=26  scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1366999145.135:382): arch=i386 syscall=ioctl success=yes exit=0 a0=1 a1=5401 a2=bfbf9528 a3=bfbf9574 items=0 ppid=3194 pid=3345 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=(none) comm=totem-video-thu exe=/usr/bin/totem-video-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)

Hash: totem-video-thu,thumb_t,thumb_t,capability,sys_tty_config

audit2allow

#============= thumb_t ==============
allow thumb_t self:capability sys_tty_config;

audit2allow -R
require {
	type thumb_t;
	class capability sys_tty_config;
}

#============= thumb_t ==============
allow thumb_t self:capability sys_tty_config;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.8-202.fc18.i686
type:           libreport

Comment 1 Miroslav Grepl 2013-04-29 06:57:25 UTC
commit 1bc3056ba0bd2a6b3c35dfd85179906d4cc7d4c2
Author: Miroslav Grepl <mgrepl>
Date:   Mon Apr 29 08:56:59 2013 +0200

    Dontaudit sys_tty_config for thumb_t

Comment 2 Fedora Update System 2013-05-07 21:29:30 UTC
selinux-policy-3.11.1-94.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-94.fc18

Comment 3 Fedora Update System 2013-05-09 10:12:15 UTC
Package selinux-policy-3.11.1-94.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-94.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7743/selinux-policy-3.11.1-94.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-05-17 11:01:10 UTC
selinux-policy-3.11.1-95.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-95.fc18

Comment 5 Fedora Update System 2013-05-21 08:40:59 UTC
selinux-policy-3.11.1-95.fc18 has been pushed to the Fedora 18 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.