Skip to content

Commit

Permalink
More Selinux rules..
Browse files Browse the repository at this point in the history
Change-Id: I3a85246880809dceec784c8e387cf3530dc192bc
  • Loading branch information
Quarx2k committed Mar 23, 2015
1 parent 313cc2b commit 614617e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sepolicy/mpdecision.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ allow mpdecision socket_device:dir {add_name write};
allow mpdecision socket_device:sock_file { write create setattr };
allow mpdecision thermal_socket:sock_file write;
allow mpdecision thermal-engine:unix_stream_socket connectto;
allow mpdecision system_data_file:dir write;
allow mpdecision system_data_file:dir add_name;
allow mpdecision system_data_file:file create;
allow mpdecision system_data_file:file { open append };



8 changes: 8 additions & 0 deletions sepolicy/sensors.te
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ allow sensors self:capability sys_nice;
allow sensors unlabeled:dir search;
allow sensors unlabeled:dir { read getattr open };
allow sensors unlabeled:file { read write getattr open };
allow sensors apk_data_file:dir write;
allow sensors apk_data_file:dir add_name;
allow sensors apk_data_file:dir remove_name;
allow sensors apk_data_file:sock_file setattr;
allow sensors apk_data_file:sock_file unlink;
allow sensors apk_data_file:sock_file write;
allow sensors apk_data_file:sock_file create;

5 changes: 5 additions & 0 deletions sepolicy/thermal-engine.te
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ allow thermal-engine socket_device:sock_file { create setattr };
allow thermal-engine sysfs_usb_supply:dir search;
allow thermal-engine sysfs_usb_supply:file r_file_perms;
allow thermal-engine thermal_socket:sock_file unlink;
allow thermal-engine sysfs_battery_supply:dir search;
allow thermal-engine sysfs_battery_supply:file read;
allow thermal-engine sysfs_battery_supply:file write;
allow thermal-engine sysfs_battery_supply:file open;

0 comments on commit 614617e

Please sign in to comment.