Bug 230628
| Summary: | SELinux rejects ub | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pete Zaitcev <zaitcev> |
| Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6 | CC: | dwalsh, jonathan.underwood, wtogami |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Current | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-08-22 14:12:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 230322 | ||
| Bug Blocks: | |||
|
Description
Pete Zaitcev
2007-03-01 21:21:31 UTC
The problem here is the devices are labeled incorrectly. They are labeled as device_t. uba1 should probably be labeled usb_device_t? If you execute this command does everything work? semanage fcontext -a -t removable_device_t -f '-b' '/dev/ub[a-z][0-9]+' you might have to run restorecon -v /dev/ub* Current policy only matches dev/ub[a-z] Adding Jon to cc:, to try the test (see comment #2). I tried re-enabling SElinux and running those two commands, but it didn't work,
I still see this in dmesg:
audit(1172836335.532:20): avc: denied { read } for pid=16589
comm="hald-probe-volu" name="uba1" dev=tmpfs ino=834181
scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:device_t:s0
tclass=blk_file
and the drive isn't mounted.
I believe you need to reboot or restart udev. since udev is not rereading the file_context file. Thanks Daniel - I rebooted having run those two commands. On reboot I added libusual.bias="ub" to the kernel options line, and sure enough plugging in a usb key causes it to be mounted and the contents displayed, with no SElinux grumbling at all. Fixed in selinux-policy-2.4.6-42 Fixed in current release |