blob: a727b25ef4b4f13b6c848751d63e57baeaca5510 [file] [log] [blame]
Florian Mayer23173452022-01-19 15:19:20 -08001# mtectrl is a tool to request MTE (Memory Tagging Extensions) from the bootloader.
Inseob Kim3bd63cc2022-01-26 08:45:17 +09002type mtectrl, domain, coredomain;
Florian Mayer23173452022-01-19 15:19:20 -08003type mtectrl_exec, system_file_type, exec_type, file_type;
4
5init_daemon_domain(mtectrl)
6
Florian Mayer51382a32022-09-21 14:53:48 -07007# to set the sys prop to match the bootloader message state.
8set_prop(mtectrl, arm64_memtag_prop)
9
Florian Mayer23173452022-01-19 15:19:20 -080010# mtectrl communicates the request to the bootloader via the misc partition.
Florian Mayer51382a32022-09-21 14:53:48 -070011# needs to write to update the request in misc partition, and read to sync
12# back to the property.
13allow mtectrl misc_block_device:blk_file rw_file_perms;
Florian Mayer23173452022-01-19 15:19:20 -080014allow mtectrl block_device:dir r_dir_perms;
15read_fstab(mtectrl)