summaryrefslogtreecommitdiff
path: root/sepolicy/subsystem_ramdump.te
blob: a780505eee8e7fd3b9fad2afb66c4db637a528d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Policy for vendor/bin/subsystem_ramdump
type subsystem_ramdump_exec, exec_type, vendor_file_type, file_type;
userdebug_or_eng(`
  type subsystem_ramdump, domain;
  init_daemon_domain(subsystem_ramdump)

  allow subsystem_ramdump device:dir r_dir_perms;
  allow subsystem_ramdump ramdump_device:chr_file r_file_perms;

  r_dir_file(subsystem_ramdump, sysfs_type)

  allow subsystem_ramdump ramdump_vendor_data_file:dir rw_dir_perms;
  allow subsystem_ramdump ramdump_vendor_data_file:file create_file_perms;

  set_prop(subsystem_ramdump, vendor_ssr_prop)
')