aboutsummaryrefslogtreecommitdiffstats
path: root/nfc.te
blob: 0522c52a99042afdb564d1f01187adc2a78fa13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# nfc subsystem
type nfc, domain;
app_domain(nfc)
net_domain(nfc)
binder_service(nfc)

# NFC device access.
allow nfc nfc_device:chr_file rw_file_perms;

# Data file accesses.
allow nfc nfc_data_file:dir create_dir_perms;
allow nfc nfc_data_file:notdevfile_class_set create_file_perms;

allow nfc sysfs_nfc_power_writable:file rw_file_perms;
allow nfc sysfs:file write;

allow nfc sdcard_type:dir create_dir_perms;
allow nfc sdcard_type:file create_file_perms;