Skip to content

Commit

Permalink
Merge "STOPSHIP: sys.vdso reflector for experiments"
Browse files Browse the repository at this point in the history
  • Loading branch information
TreeHugger Robot authored and Android (Google) Code Review committed Jan 10, 2018
2 parents fb4121d + 96c77a7 commit 346b883
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions init.common.diag.rc.userdebug
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,18 @@ on property:sys.logger.bluetooth=true
on property:sys.logger.bluetooth=false
setprop persist.service.bdroid.snooplog false
setprop persist.service.bdroid.fwsnoop false

# b/70518189 vDSO experiments
on property:sys.vdso=*
write /sys/module/vdso/parameters/enable_32 1
write /sys/module/vdso/parameters/enable_64 1

on property:sys.vdso=false
write /sys/module/vdso/parameters/enable_32 0
write /sys/module/vdso/parameters/enable_64 0

on property:sys.vdso=64
write /sys/module/vdso/parameters/enable_32 0

on property:sys.vdso=32
write /sys/module/vdso/parameters/enable_64 0
2 changes: 2 additions & 0 deletions sepolicy/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type sysfs_video, sysfs_type, fs_type;
type sysfs_wifi, sysfs_type, fs_type, mlstrustedobject;
type sysfs_diag, fs_type, sysfs_type;
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
# b/70518189 vDSO experiments
type sysfs_vdso, fs_type, sysfs_type;

# debugfs
type debugfs_msm_core, debugfs_type, fs_type;
Expand Down
3 changes: 3 additions & 0 deletions sepolicy/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,6 @@

# hidraw dynamic sensor
/dev/hidraw[0-9]+ u:object_r:sensors_device:s0

# b/70518189 vDSO experiments
/sys/module/vdso/parameters u:object_r:sysfs_vdso:s0
5 changes: 5 additions & 0 deletions sepolicy/init.te
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ allow init sysfs_type:lnk_file read;
allow init firmware_file:dir mounton;
allow init persist_file:dir mounton;
allow init userdata_block_device:blk_file { write };

# b/70518189 vDSO experiments
userdebug_or_eng(`
allow init sysfs_vdso:file w_file_perms;
')

0 comments on commit 346b883

Please sign in to comment.