Bug 2331002

Summary: SELinux is preventing /usr/libexec/iio-sensor-proxy from 'search' accesses on the directory journal.
Product: [Fedora] Fedora Reporter: platinummaniac <platinummaniac>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: 8ru2u4gz, aliakbarbabaee13, dwalsh, lvrabec, mmalik, omosnacek, pkoncity, platinummaniac, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7f76b4f9bdc8e71a3de78829d02bbc361f4fc83f973056c6915549554d41d5a3;VARIANT_ID=budgie;
Fixed In Version: selinux-policy-41.31-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-03 01:18:45 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description platinummaniac@gmail.com 2024-12-08 12:18:37 UTC
Description of problem:
SELinux is preventing /usr/libexec/iio-sensor-proxy from 'search' accesses on the directory journal.

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

If you believe that iio-sensor-proxy should be allowed search access on the journal directory 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 'iio-sensor-prox' --raw | audit2allow -M my-iiosensorprox
# semodule -X 300 -i my-iiosensorprox.pp

Additional Information:
Source Context                system_u:system_r:iiosensorproxy_t:s0
Target Context                system_u:object_r:syslogd_var_run_t:s0
Target Objects                journal [ dir ]
Source                        iio-sensor-prox
Source Path                   /usr/libexec/iio-sensor-proxy
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iio-sensor-proxy-3.5-5.fc41.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.26-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.26-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.11.10-300.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Nov 23 00:51:20 UTC 2024
                              x86_64
Alert Count                   327
First Seen                    2024-11-26 14:54:10 CST
Last Seen                     2024-12-08 06:01:06 CST
Local ID                      92c6c732-d66a-4751-abcd-86b5afc09eb9

Raw Audit Messages
type=AVC msg=audit(1733659266.934:144): avc:  denied  { search } for  pid=974 comm="iio-sensor-prox" name="journal" dev="tmpfs" ino=46 scontext=system_u:system_r:iiosensorproxy_t:s0 tcontext=system_u:object_r:syslogd_var_run_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1733659266.934:144): arch=x86_64 syscall=sendmsg success=no exit=EACCES a0=9 a1=7ffc118c5010 a2=4000 a3=60 items=0 ppid=1 pid=974 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=iio-sensor-prox exe=/usr/libexec/iio-sensor-proxy subj=system_u:system_r:iiosensorproxy_t:s0 key=(null)

Hash: iio-sensor-prox,iiosensorproxy_t,syslogd_var_run_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-41.26-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/libexec/iio-sensor-proxy from 'search' accesses on the directory journal.
package:        selinux-policy-targeted-41.26-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.10-300.fc41.x86_64
component:      selinux-policy

Comment 1 platinummaniac@gmail.com 2024-12-08 12:18:39 UTC
Created attachment 2061639 [details]
File: description

Comment 2 platinummaniac@gmail.com 2024-12-08 12:18:41 UTC
Created attachment 2061640 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-01-27 14:24:38 UTC
*** Bug 2336621 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Pytela 2025-01-27 14:24:44 UTC
*** Bug 2338757 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2025-01-28 15:37:41 UTC
FEDORA-2025-9da160c869 (selinux-policy-41.30-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9da160c869

Comment 6 Fedora Update System 2025-01-29 05:50:45 UTC
FEDORA-2025-9da160c869 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9da160c869`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9da160c869

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

Comment 7 Ali Akbar Babaei 2025-01-29 09:44:05 UTC
(In reply to Fedora Update System from comment #6)
> FEDORA-2025-9da160c869 has been pushed to the Fedora 41 testing repository.
> Soon you'll be able to install the update with the following command:
> `sudo dnf upgrade --enablerepo=updates-testing --refresh
> --advisory=FEDORA-2025-9da160c869`
> You can provide feedback for this update here:
> https://bodhi.fedoraproject.org/updates/FEDORA-2025-9da160c869
> 
> See also https://fedoraproject.org/wiki/QA:Updates_Testing for more
> information on how to test updates.

Thank you very much for your efforts.
sure i will test it.

Comment 8 Fedora Update System 2025-02-02 02:01:29 UTC
FEDORA-2025-62c612355c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-62c612355c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-62c612355c

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

Comment 9 Fedora Update System 2025-02-03 01:18:45 UTC
FEDORA-2025-62c612355c (selinux-policy-41.31-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.