Skip to content

Commit

Permalink
Allow iio-sensor-proxy read iio devices
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
type=AVC msg=audit(1736441634.931:680): avc:  denied  { read } for  pid=1121 comm="iio-sensor-prox" name="iio:device0" dev="devtmpfs" ino=1088 scontext=system_u:system_r:iiosensorproxy_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1

Resolves: rhbz#2336620
  • Loading branch information
zpytela committed Jan 30, 2025
1 parent a3a2970 commit 20c58a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/contrib/iiosensorproxy.te
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ allow iiosensorproxy_t self:capability2 bpf;
allow iiosensorproxy_t self:netlink_kobject_uevent_socket create_socket_perms;
allow iiosensorproxy_t self:unix_dgram_socket create_socket_perms;

dev_read_iio_dev(iiosensorproxy_t)
dev_read_input(iiosensorproxy_t)
dev_create_sysfs_files(iiosensorproxy_t)
dev_rw_sysfs(iiosensorproxy_t)
Expand Down

0 comments on commit 20c58a5

Please sign in to comment.