summaryrefslogtreecommitdiffstats
path: root/test/smd_test.te
blob: b5b2df12f4db1d2caf086ebef7aa0b62acc471b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#must be defined for file_contexts
type smd_test_exec, exec_type, file_type;

userdebug_or_eng(`
  type smd_test, domain;
  domain_auto_trans(shell, smd_test_exec, smd_test)
  domain_auto_trans(adbd, smd_test_exec, smd_test)
  #SMD device node and test file contexts
  allow smd_test smd_device:chr_file {ioctl read write open getattr append};
  #tests are launched from pseudo terminal, so output will be directed there
  #and as such needs adequate allow rules
  allow smd_test devpts:chr_file {ioctl read write open getattr};
')