blob: 6bc1efaf86bc314f50783b3c24569c64d305f48d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# ==============================================
# Policy File of disableswap.sh
# ==============================================
# Type Declaration
# ==============================================
type disableswap_exec , exec_type, file_type;
type disableswap ,domain;
# ==============================================
# Android Policy Rule
# ==============================================
# ==============================================
# NSA Policy Rule
# ==============================================
# ==============================================
# MTK Policy Rule
# ==============================================
# Date : WK15.17
# Operation : Migration
# Purpose : Swap off action
init_daemon_domain(disableswap)
allow disableswap block_device:dir search;
allow disableswap self:capability sys_admin;
allow disableswap shell_exec:file { entrypoint read };
allow disableswap sysfs:file write;
allow disableswap system_file:file execute_no_trans;
allow disableswap system_data_file:file { open write };
allow disableswap system_data_file:dir { write };
|