Skip to content

Commit

Permalink
Allow virtqemud_t relabel virt_var_lib_t files
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
type=PROCTITLE msg=audit(12/02/2024 12:25:39.742:1366) : proctitle=/usr/sbin/virtqemud --timeout 120
type=SYSCALL msg=audit(12/02/2024 12:25:39.742:1366) : arch=x86_64 syscall=setxattr success=yes exit=0 a0=0x7fdea404a940 a1=0x7fdeb3906197 a2=0x7fdea4040870 a3=0x2c items=0 ppid=16839 pid=16980 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=rpc-virtqemud exe=/usr/sbin/virtqemud subj=system_u:system_r:virtqemud_t:s0 key=(null)
type=AVC msg=audit(12/02/2024 12:25:39.742:1366) : avc:  denied  { relabelfrom } for  pid=16980 comm=rpc-virtqemud name=vm3-swtpm.log dev="dm-0" ino=134459017 scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:object_r:virt_log_t:s0 tclass=file permissive=1

Resolves: RHEL-39668
  • Loading branch information
zpytela committed Dec 10, 2024
1 parent 75ecdee commit d8e698e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions policy/modules/contrib/virt.te
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,8 @@ allow virtqemud_t virt_cache_t:file { relabelfrom relabelto };

allow virtqemud_t virt_driver_domain:unix_stream_socket connectto;

allow virtqemud_t virt_var_lib_t:file relabelfrom;

allow virtqemud_t virt_var_run_t:dir relabelfrom;
allow virtqemud_t virt_var_run_t:file map;

Expand Down

0 comments on commit d8e698e

Please sign in to comment.