Skip to content

Commit

Permalink
Allow iio-sensor-proxy create and use unix dgram socket
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
type=AVC msg=audit(1731194683.438:143): avc:  denied  { create } for  pid=1001 comm="iio-sensor-prox" scontext=system_u:system_r:iiosensorproxy_t:s0 tcontext=system_u:system_r:iiosensorproxy_t:s0 tclass=unix_dgram_socket permissive=0

Resolves: rhbz#2324955
  • Loading branch information
zpytela committed Nov 12, 2024
1 parent 12fef0a commit 96ea247
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 @@ -11,6 +11,7 @@ init_daemon_domain(iiosensorproxy_t, iiosensorproxy_exec_t)

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_sysfs(iiosensorproxy_t)

Expand Down

0 comments on commit 96ea247

Please sign in to comment.