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

Lldpd update #2409

Merged
merged 3 commits into from
Oct 24, 2024
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
5 changes: 5 additions & 0 deletions policy/modules/contrib/lldpad.te
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,16 @@ optional_policy(`
snmp_stream_connect(lldpad_t)
')

optional_policy(`
sysadm_dgram_send(lldpad_t)
')

optional_policy(`
sysnet_read_config(lldpad_t)
')

optional_policy(`
systemd_machined_stream_connect(lldpad_t)
systemd_userdbd_stream_connect(lldpad_t)
')

Expand Down
4 changes: 4 additions & 0 deletions policy/modules/roles/staff.te
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ optional_policy(`
iotop_run(staff_t, staff_r)
')

optional_policy(`
lldpad_dgram_send(staff_t)
')

optional_policy(`
logadm_role_change(staff_r)
')
Expand Down
18 changes: 18 additions & 0 deletions policy/modules/roles/sysadm.if
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,21 @@ interface(`sysadm_rw_pipes',`

allow $1 sysadm_t:fifo_file rw_fifo_file_perms;
')

########################################
## <summary>
## Send a message to sysadm user over a datagram socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`sysadm_dgram_send',`
gen_require(`
type sysadm_t;
')

allow $1 sysadm_t:unix_dgram_socket sendto;
')
4 changes: 4 additions & 0 deletions policy/modules/roles/sysadm.te
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ optional_policy(`
libs_run_ldconfig(sysadm_t, sysadm_r)
')

optional_policy(`
lldpad_dgram_send(sysadm_t)
')

optional_policy(`
logrotate_run(sysadm_t, sysadm_r)
')
Expand Down
4 changes: 4 additions & 0 deletions policy/modules/roles/unprivuser.te
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ optional_policy(`
irc_role(user_r, user_t)
')

optional_policy(`
lldpad_dgram_send(user_t)
')

optional_policy(`
oident_manage_user_content(user_t)
oident_relabel_user_content(user_t)
Expand Down