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

Named anon_inode io_uring usage #1889

Merged
merged 2 commits into from
Oct 4, 2023
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: 2 additions & 0 deletions policy/modules/contrib/bind.te
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ read_files_pattern(named_t, named_zone_t, named_zone_t)
read_lnk_files_pattern(named_t, named_zone_t, named_zone_t)
allow named_t named_zone_t:file map;

kernel_io_uring_use(named_t)
kernel_read_kernel_sysctls(named_t)
kernel_read_system_state(named_t)
kernel_read_network_state(named_t)
Expand Down Expand Up @@ -280,6 +281,7 @@ allow ndc_t named_conf_t:lnk_file read_lnk_file_perms;

allow ndc_t named_zone_t:dir search_dir_perms;

kernel_io_uring_use(ndc_t)
kernel_read_system_state(ndc_t)
kernel_read_kernel_sysctls(ndc_t)

Expand Down
8 changes: 6 additions & 2 deletions policy/support/obj_perm_sets.spt
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,14 @@ define(`watch_reads_chr_file_perms',`{ getattr watch_reads }')
#
define(`userfaultfd_anon_inode_perms',`
# deprecated 2022.02.07
refpolicywarn(`userfaultfd_anon_inode_perms() is deprecated, please use common_inode_perms() instead.')
refpolicywarn(`userfaultfd_anon_inode_perms() is deprecated, enumerate the needed permissions instead.')
{ create getattr ioctl read write }
')
define(`common_anon_inode_perms',`{ create getattr ioctl map read write }')
define(`common_anon_inode_perms',`
# deprecated 2023.10.04
refpolicywarn(`common_anon_inode_perms() is deprecated, enumerate the needed permissions instead.')
{ create getattr ioctl map read write }
')

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