Bug 2074239 - SELinux is preventing pppd from 'open' accesses on the archivo /run/lock/LCK..ttyUSB0.
Summary: SELinux is preventing pppd from 'open' accesses on the archivo /run/lock/LCK....
Keywords:
Status: CLOSED DUPLICATE of bug 2022902
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:529c02ad72d1656515e5250a578...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-11 20:31 UTC by Alex Villacís Lasso
Modified: 2022-04-12 09:36 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-12 09:36:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex Villacís Lasso 2022-04-11 20:31:13 UTC
Description of problem:
Attempted to enable Huawei E226 modem using ModemManager
SELinux is preventing pppd from 'open' accesses on the archivo /run/lock/LCK..ttyUSB0.

*****  Plugin catchall (100. confidence) suggests   **************************

Si cree que de manera predeterminada se debería permitir a pppd el acceso open sobre  LCK..ttyUSB0 file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'pppd' --raw | audit2allow -M mi-pppd
# semodule -X 300 -i mi-pppd.pp

Additional Information:
Source Context                system_u:system_r:pppd_t:s0
Target Context                system_u:object_r:var_lock_t:s0
Target Objects                /run/lock/LCK..ttyUSB0 [ file ]
Source                        pppd
Source Path                   pppd
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.16-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.16-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.16.18-200.fc35.x86_64 #1 SMP
                              PREEMPT Mon Mar 28 14:10:07 UTC 2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-04-11 15:29:04 -05
Last Seen                     2022-04-11 15:29:04 -05
Local ID                      50a1f03c-a5c5-4539-9108-08445bcbec99

Raw Audit Messages
type=AVC msg=audit(1649708944.726:698): avc:  denied  { open } for  pid=54102 comm="pppd" path="/run/lock/LCK..ttyUSB0" dev="tmpfs" ino=8919 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=file permissive=0


Hash: pppd,pppd_t,var_lock_t,file,open

Version-Release number of selected component:
selinux-policy-targeted-35.16-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.16.18-200.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-04-12 09:36:56 UTC

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


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