summaryrefslogtreecommitdiffstats
path: root/test/sensors_test.te
blob: 2d8d2229c7cd793473c8342efbe1395b18b6a1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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;
  allow system_app sensors_test_exec:file rx_file_perms;
')