Bug 695596 - SELinux is preventing /usr/sbin/userhelper from 'getattr' accesses on the chr_file /dev/vcsa1.
Summary: SELinux is preventing /usr/sbin/userhelper from 'getattr' accesses on the chr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:59f23701408...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-12 06:33 UTC by Matěj Cepl
Modified: 2018-04-11 08:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-07 14:07:34 UTC
Type: ---


Attachments (Terms of Use)

Description Matěj Cepl 2011-04-12 06:33:56 UTC
SELinux is preventing /usr/sbin/userhelper from 'getattr' accesses on the chr_file /dev/vcsa1.

... and similar AVC denials are generated for all files in /dev/ when I start liveusb-creator.

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

If you believe that userhelper should be allowed getattr access on the vcsa1 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:
# grep userhelper /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_consolehelper_t:s0-s0:c0.c10
                              23
Target Context                system_u:object_r:tty_device_t:s0
Target Objects                /dev/vcsa1 [ chr_file ]
Source                        userhelper
Source Path                   /usr/sbin/userhelper
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           usermode-1.107-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-13.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed
                              Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   80
First Seen                    Út 12. duben 2011, 08:32:23 CEST
Last Seen                     Út 12. duben 2011, 08:32:45 CEST
Local ID                      91b948a5-67f4-40dd-8bbd-6ebe83190829

Raw Audit Messages
type=AVC msg=audit(1302589965.1:5971): avc:  denied  { getattr } for  pid=6806 comm="userhelper" path="/dev/vcsa1" dev=devtmpfs ino=5340 scontext=staff_u:staff_r:staff_consolehelper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tty_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1302589965.1:5971): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fff5a01a030 a1=7fff5a015900 a2=7fff5a015900 a3=0 items=0 ppid=6805 pid=6806 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=pts1 ses=206 comm=userhelper exe=/usr/sbin/userhelper subj=staff_u:staff_r:staff_consolehelper_t:s0-s0:c0.c1023 key=(null)

Hash: userhelper,staff_consolehelper_t,tty_device_t,chr_file,getattr

audit2allow

#============= staff_consolehelper_t ==============
allow staff_consolehelper_t tty_device_t:chr_file getattr;

audit2allow -R

#============= staff_consolehelper_t ==============
allow staff_consolehelper_t tty_device_t:chr_file getattr;

Comment 1 Miroslav Grepl 2011-04-12 07:32:50 UTC
Matej,
what were you doing when this happened?

Comment 2 Matěj Cepl 2011-04-12 20:27:01 UTC
(In reply to comment #1)
> Matej,
> what were you doing when this happened?

>> [...] when I start liveusb-creator.

Comment 3 Daniel Walsh 2011-04-13 15:17:40 UTC
I would dontaudit the access.


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