sepolicy: qti: Move te_macros to public

This lets us use it everywhere.

Change-Id: I9ee699cdefd5fcfd1154fa927425f987ed148aaf
This commit is contained in:
LuK1337
2022-10-03 20:22:57 +02:00
committed by Łukasz Patron
parent af2f96685a
commit 082d65f8c4

View File

@@ -0,0 +1,17 @@
#####################################
# vendor_hal_attribute(hal_name)
# Add an attribute for vendor hal implementations.
define(`vendor_hal_attribute', `
attribute vendor_hal_$1;
attribute vendor_hal_$1_client;
attribute vendor_hal_$1_server;
')
#####################################
# rw_dir_file(domain, type)
# Allow the specified domain to read directories and rw 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;
')