2017-03-23 22:27:32 +01:00
|
|
|
typeattribute profman coredomain;
|
2022-07-19 22:29:31 +02:00
|
|
|
|
|
|
|
# Allow profman to read APKs and profile files next to them by FDs passed from
|
|
|
|
# other programs. In addition, allow profman to acquire flocks on those files.
|
|
|
|
allow profman {
|
|
|
|
system_file
|
|
|
|
apk_data_file
|
|
|
|
vendor_app_file
|
|
|
|
}:file { getattr read map lock };
|
|
|
|
|
|
|
|
# Allow profman to use file descriptors passed from privileged programs.
|
|
|
|
allow profman { artd installd }:fd use;
|
2023-10-12 15:48:00 +02:00
|
|
|
|
|
|
|
# Allow profman to read from memfd created by artd.
|
|
|
|
# profman needs to read the embedded profile that artd extracts from an APK,
|
|
|
|
# which is passed by a memfd.
|
|
|
|
allow profman artd_tmpfs:file { getattr read map lock };
|