This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/sepolicy/qti/vendor/te_macros
LuK1337 74c4300652 sepolicy: qti: Add rules for vendor.oplus.hardware.oplusSensor
Change-Id: I3f51f2586e0af11749bd2cdb5a744b7b2fcb283d
2022-07-11 09:35:09 +02:00

18 lines
521 B
Plaintext

#####################################
# 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;
')