aboutsummaryrefslogtreecommitdiffstats
path: root/prebuilts/api/29.0/private/migrate_legacy_obb_data.te
blob: 4bc1e2c60b1ca68c76d0113ad9363a8d664bfa69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type migrate_legacy_obb_data, domain, coredomain;
type migrate_legacy_obb_data_exec, system_file_type, exec_type, file_type;

allow migrate_legacy_obb_data media_rw_data_file:dir create_dir_perms;
allow migrate_legacy_obb_data media_rw_data_file:file create_file_perms;

allow migrate_legacy_obb_data shell_exec:file rx_file_perms;

allow migrate_legacy_obb_data toolbox_exec:file rx_file_perms;

allow migrate_legacy_obb_data self:capability { chown dac_override dac_read_search fowner fsetid };

# TODO: This should not be necessary. We don't deliberately hand over
# any open file descriptors to this domain, so anything that triggers this
# should be a candidate for O_CLOEXEC.
allow migrate_legacy_obb_data installd:fd use;

# This rule is required to let this process read /proc/{parent_pid}/mount.
# TODO: Why is this required ?
allow migrate_legacy_obb_data installd:file read;