Bug 2324295 - SELinux is preventing /usr/libexec/iio-sensor-proxy from 'write' accesses on the file in_magn_z_en.
Summary: SELinux is preventing /usr/libexec/iio-sensor-proxy from 'write' accesses on ...
Keywords:
Status: CLOSED DUPLICATE of bug 2324181
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b20fa76fcc1810300c148b8f985...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-07 07:52 UTC by Shafa'el Zaitsev
Modified: 2024-11-20 21:45 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-20 21:45:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.34 KB, text/plain)
2024-11-07 07:52 UTC, Shafa'el Zaitsev
no flags Details
File: os_info (681 bytes, text/plain)
2024-11-07 07:52 UTC, Shafa'el Zaitsev
no flags Details

Description Shafa'el Zaitsev 2024-11-07 07:52:52 UTC
Description of problem:
SELinux is preventing /usr/libexec/iio-sensor-proxy from 'write' accesses on the file in_magn_z_en.

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

If you believe that iio-sensor-proxy should be allowed write access on the in_magn_z_en 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 '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:sysfs_t:s0
Target Objects                in_magn_z_en [ file ]
Source                        iio-sensor-prox
Source Path                   /usr/libexec/iio-sensor-proxy
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iio-sensor-proxy-3.5-4.fc41.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.24-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.24-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.11.6-cb2.0.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Nov 2 18:56:17 UTC 2024 x86_64
Alert Count                   302
First Seen                    2024-11-06 21:31:52 +06
Last Seen                     2024-11-07 13:35:59 +06
Local ID                      e44e4dc4-b33d-487a-bfc3-94ead0c5ffe6

Raw Audit Messages
type=AVC msg=audit(1730964959.625:144): avc:  denied  { write } for  pid=764 comm="iio-sensor-prox" name="in_magn_z_en" dev="sysfs" ino=45627 scontext=system_u:system_r:iiosensorproxy_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1730964959.625:144): arch=x86_64 syscall=openat success=yes exit=EBADF a0=ffffff9c a1=560d7d7f59a0 a2=241 a3=1b6 items=0 ppid=1 pid=764 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,sysfs_t,file,write

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/libexec/iio-sensor-proxy from 'write' accesses on the file in_magn_z_en.
package:        selinux-policy-targeted-41.24-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.6-cb2.0.fc41.x86_64
component:      selinux-policy

Comment 1 Shafa'el Zaitsev 2024-11-07 07:52:55 UTC
Created attachment 2056156 [details]
File: description

Comment 2 Shafa'el Zaitsev 2024-11-07 07:52:57 UTC
Created attachment 2056157 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-11-20 21:45:58 UTC

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


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