Skip to content

Commit

Permalink
Namespace ramdump_prop with vendor prefix (3/7)
Browse files Browse the repository at this point in the history
debug.ramdump.* and persist.sys.crash_rcu should be renamed to
vendor.debug.ramdump.* and persist.vendor.sys.crash_rcu repectively
because they are vendor-specific properties.

Bug: 74266614
Test: succeeded building and tested with sailfish
Change-Id: I1ce40d358d5577d2a141f571e63323354487b632
  • Loading branch information
nocry22 committed Mar 22, 2018
1 parent 49434d0 commit 3c9d518
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions init.common.diag.rc.userdebug
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ service vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cn
disabled
oneshot

on property:persist.sys.crash_rcu=true
on property:persist.vendor.sys.crash_rcu=true
write /proc/sys/kernel/panic_on_rcu_stall 1

on property:persist.sys.crash_rcu=false
on property:persist.vendor.sys.crash_rcu=false
write /proc/sys/kernel/panic_on_rcu_stall 0


Expand Down
2 changes: 1 addition & 1 deletion sepolicy/property.te
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type mid_prop, property_type;
type ssr_prop, property_type;
type cnss_diag_prop, property_type;
type thermal_prop, property_type;
type ramdump_prop, property_type;
type vendor_ramdump_prop, property_type;
type sys_time_prop, property_type;
type post_boot_prop, property_type;
type bluetooth_log_prop, property_type;
Expand Down
3 changes: 2 additions & 1 deletion sepolicy/property_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ro.boot.hardware.sku u:object_r:hw_sku_prop:s0
ro.boot.mid u:object_r:mid_prop:s0
debug.ssrdump u:object_r:ssr_prop:s0
persist.sys.cnss. u:object_r:cnss_diag_prop:s0
persist.sys.crash_rcu u:object_r:ramdump_prop:s0
vendor.debug.ramdump. u:object_r:vendor_ramdump_prop:s0
persist.vendor.sys.crash_rcu u:object_r:vendor_ramdump_prop:s0
sys.qcom.thermalcfg u:object_r:thermal_prop:s0
ctl.vendor.thermal-engine u:object_r:thermal_prop:s0
sys.time.set u:object_r:sys_time_prop:s0
Expand Down
2 changes: 1 addition & 1 deletion sepolicy/ramdump_app.te
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ userdebug_or_eng(`
allow ramdump_app ramdump_vendor_data_file:file create_file_perms;
allow ramdump_app ramdump_vendor_data_file:dir create_dir_perms;

set_prop(ramdump_app, ramdump_prop);
set_prop(ramdump_app, vendor_ramdump_prop);
')

0 comments on commit 3c9d518

Please sign in to comment.