Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bade3a5d authored by LuK1337's avatar LuK1337 Committed by Jackeagle
Browse files

sepolicy: Move rw_dir_file/create_dir_file macros to public

Change-Id: Ia6335fb41aa00679a8a069e9ffaf8f81a2380e33
parent 76b7f7c7
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
#####################################
# rw_dir_file(domain, type)
# Allow the specified domain to read directories and read/write files
# and symbolic links of the specified type.
define(`rw_dir_file', `
allow $1 $2:dir r_dir_perms;
allow $1 $2:{ file lnk_file } rw_file_perms;
')

#####################################
# create_dir_file(domain, type)
# Allow the specified domain to read directories and create files
# and symbolic links of the specified type.
define(`create_dir_file', `
allow $1 $2:dir r_dir_perms;
allow $1 $2:{ file lnk_file } create_file_perms;
')

#####################################
# hal_attribute_lineage(hal_name)
define(`hal_attribute_lineage', `