fcfc13ac6f
The init binary must transition to another domain when calling out to executables. Create the mkfs domain for mkfs.f2fs such that init can transition to it when formatting userdata/cache partitions if the "formattable" flag is set. Change-Id: I1046782386d171a59b1a3c5441ed265dc0824977
9 lines
279 B
Text
9 lines
279 B
Text
type mkfs, domain;
|
|
type mkfs_exec, exec_type, file_type;
|
|
|
|
init_daemon_domain(mkfs)
|
|
|
|
# Allow formatting userdata or cache partitions
|
|
allow mkfs block_device:dir search;
|
|
allow mkfs userdata_block_device:blk_file rw_file_perms;
|
|
allow mkfs cache_block_device:blk_file rw_file_perms;
|