nfc.te 414 Bytes
Newer Older
Stephen Smalley's avatar
Stephen Smalley committed
1 2 3
# nfc subsystem
type nfc, domain;
app_domain(nfc)
4
net_domain(nfc)
Nick Kralevich's avatar
Nick Kralevich committed
5
binder_service(nfc)
6 7 8 9 10 11 12 13 14 15

# 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;
16 17

allow nfc nfc_service:service_manager add;