| Summary: | SELinux is preventing modem-manager from 'ioctl' accesses on the chr_file /dev/ttyUSB1. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | ramayu <ramayu_sr17> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | dominick.grift, dwalsh, mgrepl, ramayu_sr17 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:cbdc43e5f9440f24ac028fb8fccf6f1995947cd835b79e3defe768650d5c51d5 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-07 17:20:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I just added a patch to rawhide git that should be labeling /dev/ttyUSB character device nodes tyoe usbtty-device-t a few days ago. I also added a term_use_usb_ttys() interface, which if the labeling works, we can call for modemmanager_t i guess. http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commit;h=105865a08aaed4270d62ff44ca919b1ca1a93922 ramayu, how is labeled /dev/ttyUSB1 # ls -Z /dev/ttyUSB1 This message is a notice that Fedora 15 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 15. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '15' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 15 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |
SELinux is preventing modem-manager from 'ioctl' accesses on the chr_file /dev/ttyUSB1. ***** Plugin restorecon (90.5 confidence) suggests ************************* If you want to fix the label. /dev/ttyUSB1 default label should be tty_device_t. Then you can run restorecon. Do # /sbin/restorecon -v /dev/ttyUSB1 ***** Plugin device (9.50 confidence) suggests ***************************** If you want to allow modem-manager to have ioctl access on the ttyUSB1 chr_file Then you need to change the label on /dev/ttyUSB1 to a type of a similar device. Do # semanage fcontext -a -t SIMILAR_TYPE '/dev/ttyUSB1' # restorecon -v '/dev/ttyUSB1' ***** Plugin catchall (1.40 confidence) suggests *************************** If you believe that modem-manager should be allowed ioctl access on the ttyUSB1 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 modem-manager /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:modemmanager_t:s0-s0:c0.c1023 Target Context system_u:object_r:device_t:s0 Target Objects /dev/ttyUSB1 [ chr_file ] Source modem-manager Source Path modem-manager Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.9.16-38.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.40.4-5.fc15.i686 #1 SMP Tue Aug 30 14:54:41 UTC 2011 i686 i686 Alert Count 6 First Seen Tue 27 Sep 2011 10:03:28 PM CIT Last Seen Wed 28 Sep 2011 09:42:17 AM CIT Local ID 800ac329-cf5e-435e-9f76-bdcf1b669496 Raw Audit Messages type=AVC msg=audit(1317174137.479:139): avc: denied { ioctl } for pid=720 comm="modem-manager" path="/dev/ttyUSB1" dev=devtmpfs ino=74550 scontext=system_u:system_r:modemmanager_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file Hash: modem-manager,modemmanager_t,device_t,chr_file,ioctl audit2allow #============= modemmanager_t ============== allow modemmanager_t device_t:chr_file ioctl; audit2allow -R #============= modemmanager_t ============== allow modemmanager_t device_t:chr_file ioctl;