Skip to content

Commit

Permalink
Update policy for samba-bgqd
Browse files Browse the repository at this point in the history
These particular changes were made:
- allow samba-bgqd read sssd public files
- allow samba-bgqd write to winbind-rpcd pipes
- allow winbind-rpcd execute samba-bgqd
  • Loading branch information
zpytela committed Nov 19, 2024
1 parent 281599e commit 5714d63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions policy/modules/contrib/samba.te
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ optional_policy(`
auth_read_passwd_file(samba_bgqd_t)
')

optional_policy(`
sssd_read_public_files(samba_bgqd_t)
')

########################################
#
# smbd Local policy
Expand Down Expand Up @@ -1376,6 +1380,9 @@ allow winbind_rpcd_t smbd_t:unix_dgram_socket sendto;
allow winbind_rpcd_t winbind_t:unix_dgram_socket sendto;
allow winbind_rpcd_t winbind_t:unix_stream_socket connectto;

# accessing other samba services and their resources
allow samba_bgqd_t winbind_rpcd_t:fifo_file write;
allow winbind_rpcd_t samba_bgqd_exec_t:file exec_file_perms;
allow winbind_rpcd_t samba_bgqd_var_run_t:file write_file_perms;

samba_domtrans_winbind_rpcd(smbd_t)
Expand Down

0 comments on commit 5714d63

Please sign in to comment.