Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow virtqemud send a generic signal to the ssh client domain #2508

Merged
merged 1 commit into from
Jan 8, 2025
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
2 changes: 1 addition & 1 deletion policy/modules/contrib/virt.te
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ optional_policy(`

optional_policy(`
ssh_domtrans_ssh(virtqemud_t)
ssh_signal(virtqemud_t)
ssh_signal_ssh(virtqemud_t)
')

optional_policy(`
Expand Down
18 changes: 18 additions & 0 deletions policy/modules/services/ssh.if
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,24 @@ interface(`ssh_exec',`
can_exec($1, ssh_exec_t)
')

########################################
## <summary>
## Send a generic signal to the ssh client domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`ssh_signal_ssh',`
gen_require(`
type ssh_t, ssh_exec_t;
')

allow $1 ssh_t:process signal;
')

########################################
## <summary>
## Execute the ssh client in the ssh client domain.
Expand Down
Loading