sepolicy: qti: Move te_macros to public
This lets us use it everywhere. Change-Id: I9ee699cdefd5fcfd1154fa927425f987ed148aaf
This commit is contained in:
17
sepolicy/qti/public/te_macros
Normal file
17
sepolicy/qti/public/te_macros
Normal 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;
|
||||
')
|
||||
Reference in New Issue
Block a user