mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-08-14 09:06:00 -04:00
Many changes
- Add a variable to control inclusion of patches under a restrictive license - Fix F-Droid building - Add a buildDeviceDebug function that disables signing - Misc tweaks/cleanup - 15.1: Revert trust_interface cherry picks until official
This commit is contained in:
parent
f041047983
commit
28600556b4
10 changed files with 81 additions and 24 deletions
|
@ -0,0 +1,27 @@
|
|||
From 3c31c1f1188e1c550f02d838daa8e7c2e55e6f56 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Mon, 23 Apr 2018 02:39:35 -0400
|
||||
Subject: [PATCH] deny all new usb devices until after boot
|
||||
|
||||
Change-Id: I7a3dad49610eb4010dc13a3acaffb6fd91cdc89c
|
||||
---
|
||||
rootdir/init.rc | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/rootdir/init.rc b/rootdir/init.rc
|
||||
index c1bd58eba..38f3bab9f 100644
|
||||
--- a/rootdir/init.rc
|
||||
+++ b/rootdir/init.rc
|
||||
@@ -18,6 +18,9 @@ on early-init
|
||||
# Disable sysrq from keyboard
|
||||
write /proc/sys/kernel/sysrq 0
|
||||
|
||||
+ # Deny all new USB devices until after boot
|
||||
+ write /proc/sys/kernel/deny_new_usb 1
|
||||
+
|
||||
# Set the security context of /adb_keys if present.
|
||||
restorecon /adb_keys
|
||||
|
||||
--
|
||||
2.17.0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue