Bug 1954380 - SELinux is preventing usbmuxd from 'getattr' accesses on the filesystem /dev/shm.
Summary: SELinux is preventing usbmuxd from 'getattr' accesses on the filesystem /dev/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d8da0408eeb3b03c7fea47db4e3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-28 04:02 UTC by remyabel
Modified: 2021-09-30 01:13 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-34.21-1.fc34
Clone Of:
Environment:
Last Closed: 2021-09-30 01:13:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description remyabel 2021-04-28 04:02:56 UTC
Description of problem:
SELinux is preventing usbmuxd from 'getattr' accesses on the filesystem /dev/shm.

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

If you believe that usbmuxd should be allowed getattr access on the shm filesystem 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:
# ausearch -c 'usbmuxd' --raw | audit2allow -M my-usbmuxd
# semodule -X 300 -i my-usbmuxd.pp

Additional Information:
Source Context                system_u:system_r:usbmuxd_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                /dev/shm [ filesystem ]
Source                        usbmuxd
Source Path                   usbmuxd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.3-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.3-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.11.15-300.fc34.x86_64 #1 SMP Fri
                              Apr 16 13:41:48 UTC 2021 x86_64 x86_64
Alert Count                   4
First Seen                    2021-04-26 02:14:57 EDT
Last Seen                     2021-04-26 04:17:57 EDT
Local ID                      541c5c79-f2a6-414e-81b0-f274915f7818

Raw Audit Messages
type=AVC msg=audit(1619425077.528:134): avc:  denied  { getattr } for  pid=926 comm="usbmuxd" name="/" dev="tmpfs" ino=1 scontext=system_u:system_r:usbmuxd_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0


Hash: usbmuxd,usbmuxd_t,tmpfs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-34.3-1.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.15-300.fc34.x86_64
type:           libreport

Comment 1 Michael 2021-09-22 20:50:28 UTC
Similar problem has been detected:

iPhone connected

hashmarkername: setroubleshoot
kernel:         5.13.16-200.fc34.x86_64
package:        selinux-policy-targeted-34.20-1.fc34.noarch
reason:         SELinux is preventing usbmuxd from 'getattr' accesses on the filesystem /dev/shm.
type:           libreport

Comment 2 Zdenek Pytela 2021-09-23 12:15:41 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/895

Comment 3 Fedora Update System 2021-09-24 09:55:24 UTC
FEDORA-2021-a15b7e7314 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a15b7e7314

Comment 4 Fedora Update System 2021-09-24 21:48:37 UTC
FEDORA-2021-a15b7e7314 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a15b7e7314`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a15b7e7314

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-09-30 01:13:46 UTC
FEDORA-2021-a15b7e7314 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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