sm8250-common: sepolicy: Rework policies for moto services

* Avoid direct access to kmsg for logging purpose.

Change-Id: I7bb86c270d81dbd6f4bdc66e78ac77e44b61e708
This commit is contained in:
dianlujitao 2022-01-26 18:18:28 +08:00 committed by SGCMarkus
parent a7b86aed87
commit 1116fa8b1f
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ debug()
notice() notice()
{ {
echo "$*" echo "$*"
echo "$scriptname: $*" > /dev/kmsg log -t "$scriptname" -i "$*"
} }
error_and_leave() error_and_leave()

View File

@ -56,7 +56,7 @@ debug()
notice() notice()
{ {
echo "$*" echo "$*"
echo "$scriptname: $*" > /dev/kmsg log -t "$scriptname" -i "$*"
} }
sanity_check() sanity_check()

View File

@ -181,7 +181,7 @@ debug()
notice() notice()
{ {
echo "$*" echo "$*"
echo "$scriptname: $*" > /dev/kmsg log -t "$scriptname" -i "$*"
} }
add_device_params() add_device_params()