Bug 693724 - SELinux is preventing modem-manager from read access on
Summary: SELinux is preventing modem-manager from read access on
Keywords:
Status: CLOSED DUPLICATE of bug 692459
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-05 12:36 UTC by Aleksandra Fedorova
Modified: 2011-04-05 14:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-05 14:18:39 UTC
Type: ---


Attachments (Terms of Use)

Description Aleksandra Fedorova 2011-04-05 12:36:00 UTC
SELinux is preventing modem-manager from read access on the file c188:1.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow modem-manager to have read access on the c188:1 file
Then you need to change the label on c188:1
Do
# semanage fcontext -a -t FILE_TYPE 'c188:1'
where FILE_TYPE is one of the following: dbusd_etc_t, userdomain, abrt_var_run_t, sysctl_crypto_t, modemmanager_exec_t, abrt_t, lib_t, afs_cache_t, abrt_helper_exec_t, system_dbusd_var_lib_t, modemmanager_t, ld_so_t, textrel_shlib_t, rpm_script_tmp_t, device_t, locale_t, etc_t, proc_t, sysfs_t, ld_so_cache_t, udev_tbl_t. 
Then execute: 
restorecon -v 'c188:1'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that modem-manager should be allowed read access on the c188:1 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:default_t:s0
Target Objects                c188:1 [ file ]
Source                        modem-manager
Source Path                   modem-manager
Port                          <Unknown>
Host                          book
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     book
Platform                      Linux book 2.6.38.2-8.fc15.x86_64 #1 SMP Mon Mar
                              28 02:14:51 UTC 2011 x86_64 x86_64
Alert Count                   64
First Seen                    Tue 05 Apr 2011 01:06:41 PM CEST
Last Seen                     Tue 05 Apr 2011 01:07:12 PM CEST
Local ID                      3beabda9-cf39-4854-bf25-467a7af05c54

Raw Audit Messages
type=AVC msg=audit(1302001632.624:196): avc:  denied  { read } for  pid=972 comm="modem-manager" name="c188:1" dev=tmpfs ino=159349 scontext=system_u:system_r:modemmanager_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file


Hash: modem-manager,modemmanager_t,default_t,file,read

audit2allow

#============= modemmanager_t ==============
allow modemmanager_t default_t:file read;

audit2allow -R

#============= modemmanager_t ==============
allow modemmanager_t default_t:file read;


This bug is similar to
https://bugzilla.redhat.com/show_bug.cgi?id=693632
but appears in F15 not rawhide.

Comment 1 Daniel Walsh 2011-04-05 14:18:39 UTC

*** This bug has been marked as a duplicate of bug 692459 ***


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