Bug 2268960 - SELinux is preventing gst-plugin-scan from 'map' accesses on the chr_file /dev/dri/renderD128.
Summary: SELinux is preventing gst-plugin-scan from 'map' accesses on the chr_file /de...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:008135b0c22ce8acea0a07849a6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-11 07:10 UTC by Dwight Smith
Modified: 2024-10-08 01:38 UTC (History)
10 users (show)

Fixed In Version: selinux-policy-40.28-1.fc40
Clone Of:
Environment:
Last Closed: 2024-10-08 01:38:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.98 KB, text/plain)
2024-03-11 07:10 UTC, Dwight Smith
no flags Details
File: os_info (734 bytes, text/plain)
2024-03-11 07:10 UTC, Dwight Smith
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2335 0 None open Allow thumb_t map dri devices 2024-09-02 15:20:31 UTC

Description Dwight Smith 2024-03-11 07:10:05 UTC
Description of problem:
SELinux is preventing gst-plugin-scan from 'map' accesses on the chr_file /dev/dri/renderD128.

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

If you believe that gst-plugin-scan should be allowed map access on the renderD128 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:
# ausearch -c 'gst-plugin-scan' --raw | audit2allow -M my-gstpluginscan
# semodule -X 300 -i my-gstpluginscan.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:dri_device_t:s0
Target Objects                /dev/dri/renderD128 [ chr_file ]
Source                        gst-plugin-scan
Source Path                   gst-plugin-scan
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.5-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.5-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.7.7-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Mar 1 16:53:59 UTC 2024 x86_64
Alert Count                   1
First Seen                    2024-03-11 00:07:16 PDT
Last Seen                     2024-03-11 00:07:16 PDT
Local ID                      ab1f6746-84f9-4058-8e30-837ddf885b8e

Raw Audit Messages
type=AVC msg=audit(1710140836.332:583): avc:  denied  { map } for  pid=1093967 comm="gst-plugin-scan" path="/dev/dri/renderD128" dev="devtmpfs" ino=458 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dri_device_t:s0 tclass=chr_file permissive=1


Hash: gst-plugin-scan,thumb_t,dri_device_t,chr_file,map

Version-Release number of selected component:
selinux-policy-targeted-39.5-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
type:           libreport
package:        selinux-policy-targeted-39.5-1.fc39.noarch
hashmarkername: setroubleshoot
kernel:         6.7.7-200.fc39.x86_64
reason:         SELinux is preventing gst-plugin-scan from 'map' accesses on the chr_file /dev/dri/renderD128.
component:      selinux-policy
component:      selinux-policy

Comment 1 Dwight Smith 2024-03-11 07:10:07 UTC
Created attachment 2021089 [details]
File: description

Comment 2 Dwight Smith 2024-03-11 07:10:08 UTC
Created attachment 2021090 [details]
File: os_info

Comment 3 Jakub Jankiewicz 2024-06-13 10:29:06 UTC
Same error on Fedora 40, happen when copy image files when there is destination folder open. I was coping Raw files (Nikon NEF) from SD card.

Comment 4 Jakub Jankiewicz 2024-09-01 14:24:41 UTC
In my case it's renderD129, and happen from time to time. Now, when I opened directory with Raw files.

Comment 5 Fedora Update System 2024-10-02 18:44:11 UTC
FEDORA-2024-75212378ea (selinux-policy-40.28-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-75212378ea

Comment 6 Fedora Update System 2024-10-03 03:38:11 UTC
FEDORA-2024-75212378ea has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-75212378ea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-75212378ea

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

Comment 7 Fedora Update System 2024-10-08 01:38:28 UTC
FEDORA-2024-75212378ea (selinux-policy-40.28-1.fc40) has been pushed to the Fedora 40 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.