Skip to content

Commit

Permalink
Deprecate common_anon_inode_perms usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zpytela committed Oct 4, 2023
1 parent 65b9e0b commit 6fa1f59
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 6fa1f59

Please sign in to comment.