summaryrefslogtreecommitdiffstats
path: root/test/sensors_test.te
blob: 92872b50d73f4569909eb528018223a89bd69e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Policy for sensor test binaries
type sensors_test_exec, exec_type, file_type;

userdebug_or_eng(`
  type sensors_test, domain;

  domain_auto_trans(shell, sensors_test_exec, sensors_test)
  domain_auto_trans(adbd, sensors_test_exec, sensors_test)

  allow sensors_test devpts:chr_file rw_file_perms;
  allow sensors_test sensors:unix_stream_socket connectto;
  allow sensors_test sensors_device:chr_file rw_file_perms;
  allow sensors_test sensors_socket:sock_file rw_file_perms;
  allow sensors_test smd_device:chr_file rw_file_perms;
  allow sensors_test socket_device:dir r_dir_perms;
')