Skip to content

Commit

Permalink
Allow systemd-homework write to init pid socket
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
type=AVC msg=audit(10/14/2024 13:09:30.759:7891) : avc:  denied  { write } for  pid=265995 comm=systemd-homewor name=private dev="tmpfs" ino=810 scontext=system_u:system_r:systemd_homework_t:s0 tcontext=system_u:object_r:init_var_run_t:s0 tclass=sock_file permissive=0
type=SYSCALL msg=audit(10/14/2024 13:09:30.759:7891) : arch=x86_64 syscall=connect success=no exit=EACCES(Permission denied) a0=0x4 a1=0x55c125954158 a2=0x17 a3=0x7fff26a89604 items=1 ppid=760 pid=265995 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-homewor exe=/usr/lib/systemd/systemd-homework subj=system_u:system_r:systemd_homework_t:s0 key=(null)
type=SOCKADDR msg=audit(10/14/2024 13:09:30.759:7891) : saddr={ saddr_fam=local path=/run/systemd/private }
type=PATH msg=audit(10/14/2024 13:09:30.759:7891) : item=0 name=/run/systemd/private inode=810 dev=00:1b mode=socket,700 ouid=root ogid=root rdev=00:
  • Loading branch information
zpytela committed Oct 16, 2024
1 parent 742b8ca commit 36d8356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/system/systemd-homed.te
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ fsadm_manage_pid(systemd_homework_t)

init_read_state(systemd_homework_t)
init_rw_stream_sockets(systemd_homework_t)
init_write_pid_socket(systemd_homework_t)

storage_raw_read_removable_device(systemd_homework_t)
storage_rw_inherited_removable_device(systemd_homework_t)
Expand Down

0 comments on commit 36d8356

Please sign in to comment.