Skip to content

Commit

Permalink
Allow sysadm execute tcpdump in sysadm_t domain using sudo
Browse files Browse the repository at this point in the history
When an unprivileged user in the sysadm_r role executes tcpdump
through sudo, it transitions into sysadm_sudo_t domain by default.
With this commit, the process transitions back to sysadm_t.

Resolves: RHEL-15398
  • Loading branch information
zpytela committed Dec 12, 2023
1 parent f442292 commit 31c1f0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/admin/sudo.if
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ template(`sudo_role_template',`
kerberos_read_config($1_sudo_t)
')

optional_policy(`
netutils_domtrans($1_sudo_t)
')

optional_policy(`
systemd_domtrans_systemctl($1_sudo_t, $3)
systemd_systemctl_entrypoint($3)
Expand Down

0 comments on commit 31c1f0d

Please sign in to comment.