-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wahoo: Make vendor script use vendor shell and vendor toybox
This also enables us to remove the vendor_executes_system_violator attribute from all the vendor scripts launched from init. Bug: 37914554 Test: Build and boot and ensure all services exited with status 0. Change-Id: If692b17b45f91ff128608c3f6e9524847c1af69f Signed-off-by: Sandeep Patil <[email protected]>
- Loading branch information
Showing
10 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/system/bin/sh | ||
#! /vendor/bin/sh | ||
|
||
######################################### | ||
### init.insmod.cfg format: ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/system/bin/sh | ||
#! /vendor/bin/sh | ||
|
||
echo 1 > /sys/kernel/boot_adsp/boot | ||
echo 1 > /sys/kernel/boot_slpi/boot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/system/bin/sh | ||
#! /vendor/bin/sh | ||
|
||
echo 1 > /dev/ipa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/system/bin/sh | ||
#! /vendor/bin/sh | ||
|
||
# | ||
# Copy qcril.db if needed for RIL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
type init-qcom-ipastart-sh, domain, vendor_executes_system_violators; | ||
type init-qcom-ipastart-sh, domain; | ||
type init-qcom-ipastart-sh_exec, exec_type, vendor_file_type, file_type; | ||
|
||
init_daemon_domain(init-qcom-ipastart-sh) | ||
|
||
allow init-qcom-ipastart-sh shell_exec:file rx_file_perms; | ||
allow init-qcom-ipastart-sh vendor_shell_exec:file rx_file_perms; | ||
allow init-qcom-ipastart-sh vendor_toolbox_exec:file rx_file_perms; | ||
|
||
# Set /dev/ipa to 1 | ||
allow init-qcom-ipastart-sh ipa_dev:chr_file w_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# /vendor/bin/init.radio.sh | ||
type init_radio, domain, vendor_executes_system_violators; | ||
type init_radio, domain; | ||
type init_radio_exec, exec_type, vendor_file_type, file_type; | ||
|
||
init_daemon_domain(init_radio) | ||
|
||
allow init_radio shell_exec:file r_file_perms; | ||
allow init_radio toolbox_exec:file rx_file_perms; | ||
allow init_radio vendor_shell_exec:file rx_file_perms; | ||
allow init_radio vendor_toolbox_exec:file rx_file_perms; | ||
|
||
allow init_radio radio_data_file:dir create_dir_perms; | ||
allow init_radio radio_data_file:file create_file_perms; |