summaryrefslogtreecommitdiff
path: root/sepolicy/disableswap.te
blob: 7a757ff0479b987199452f33436a31a9757dbbda (plain)
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
34
35
36
37
# ==============================================
# 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 (Started by init)
init_daemon_domain(disableswap)

# Date : WK15.17
# Operation : Migration
# Purpose : Swap off action
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 enableswap_data_file:file { open write read };
allow disableswap system_data_file:dir { write };