Bug 693579

Summary: SELinux is preventing /usr/sbin/modem-manager from 'read' accesses on the file n1.
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-05 12:16: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:

Description Luya Tshimbalanga 2011-04-05 00:13:54 UTC
Description of problem:

SELinux is preventing /usr/sbin/modem-manager from 'read' accesses on the file n1.

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

If you want to allow modem-manager to have read access on the n1 file
Then you need to change the label on n1
Do
# semanage fcontext -a -t FILE_TYPE 'n1'
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 'n1'


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

If you believe that modem-manager should be allowed read access on the n1 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                n1 [ file ]
Source                        modem-manager
Source Path                   /usr/sbin/modem-manager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ModemManager-0.4-7.git20110201.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux muamba.benashima.net 2.6.38.2-9.fc15.x86_64
                              #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   10
First Seen                    Mon 04 Apr 2011 04:49:51 PM PDT
Last Seen                     Mon 04 Apr 2011 04:49:51 PM PDT
Local ID                      db5ac886-e757-4aae-ab97-054ded454224

Raw Audit Messages
type=AVC msg=audit(1301960991.516:20): avc:  denied  { read } for  pid=933 comm="modem-manager" name="n1" dev=tmpfs ino=11402 scontext=system_u:system_r:modemmanager_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file


type=SYSCALL msg=audit(1301960991.516:20): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff10e51650 a1=80000 a2=1b6 a3=0 items=0 ppid=1 pid=933 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=modem-manager exe=/usr/sbin/modem-manager subj=system_u:system_r:modemmanager_t:s0-s0:c0.c1023 key=(null)

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;

Version-Release number of selected component (if applicable):
3.9.16-12

How reproducible:
Always

Steps to Reproduce:
1. N/A
2.
3.
  
Actual results:





Expected results:


Additional info:

Comment 1 Miroslav Grepl 2011-04-05 12:16:15 UTC

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