Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions policy/modules/contrib/virt.if
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,25 @@ interface(`virt_virtqemud_read_state',`
ps_process_pattern($1, virtqemud_t)
')

########################################
## <summary>
## Read the svirt process state.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`virt_svirt_read_state',`
gen_require(`
type svirt_t;
')

kernel_search_proc($1)
ps_process_pattern($1, svirt_t)
')

########################################
## <summary>
## Execute virsh in the caller domain.
Expand Down
1 change: 1 addition & 0 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ optional_policy(`
virt_rw_svirt_dev(systemd_machined_t)
virt_getattr_sandbox_filesystem(systemd_machined_t)
virt_read_sandbox_files(systemd_machined_t)
virt_svirt_read_state(systemd_machined_t)
')

#######################################
Expand Down