Skip to content

Commit 578c0a9

Browse files
muhomorrthestinger
authored andcommitted
add property trigger for deny_new_usb2
1 parent b8611d3 commit 578c0a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rootdir/init.rc

+3
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,9 @@ on property:persist.security.deny_new_usb=dynamic
12581258
on property:security.deny_new_usb=*
12591259
write /proc/sys/kernel/deny_new_usb ${security.deny_new_usb}
12601260

1261+
on property:security.deny_new_usb2=*
1262+
write /proc/sys/kernel/deny_new_usb2 ${security.deny_new_usb2}
1263+
12611264
# perf_event_open syscall security:
12621265
# Newer kernels have the ability to control the use of the syscall via SELinux
12631266
# hooks. init tests for this, and sets sys_init.perf_lsm_hooks to 1 if the

0 commit comments

Comments
 (0)