Bug 240621 - after plugging in FW camera (Apple iSight) /dev/fw[01] lack proper labels
after plugging in FW camera (Apple iSight) /dev/fw[01] lack proper labels
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-05-18 17:52 EDT by Will Woods
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-21 12:10:07 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 Will Woods 2007-05-18 17:52:48 EDT
I've plugged in an iSight, but /dev/fwX do not seem to get proper labels:

[wwoods@brinstar ~]$ ls -alZ /dev/fw*
crw-------  root root system_u:object_r:device_t       /dev/fw0
crw-------  root root system_u:object_r:device_t       /dev/fw1

This prevents hal from being able to run /usr/bin/setfacl on them:

avc: denied { getattr } for comm="setfacl" dev=tmpfs egid=0 euid=0
exe="/usr/bin/setfacl" exit=-13 fsgid=0 fsuid=0 gid=0 items=0 name="fw1"
path="/dev/fw1" pid=4510 scontext=system_u:system_r:hald_acl_t:s0 sgid=0
subj=system_u:system_r:hald_acl_t:s0 suid=0 tclass=chr_file
tcontext=system_u:object_r:device_t:s0 tty=(none) uid=0 

Which may prevent me from using it properly.
Comment 1 Daniel Walsh 2007-05-18 21:21:03 EDT
What version of policy?

On my machine

matchpathcon  /dev/fw0 
/dev/fw0        system_u:object_r:usb_device_t

Comment 2 Will Woods 2007-05-19 00:30:52 EDT
actually, hmm. I've now got selinux-policy-targeted-2.6.4-6.fc7, and that gives
similar matchpathcon results. But I currently don't have physical access to the
machine, so I can't tell if this is a problem right now. I'll test again Monday.
Comment 3 Will Woods 2007-05-21 12:10:07 EDT
Seems fixed now that I'm definitely using the right policy.

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