From 1116fa8b1fcc9513d91f174300496c673b09f5eb Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Wed, 26 Jan 2022 18:18:28 +0800 Subject: [PATCH] sm8250-common: sepolicy: Rework policies for moto services * Avoid direct access to kmsg for logging purpose. Change-Id: I7bb86c270d81dbd6f4bdc66e78ac77e44b61e708 --- rootdir/bin/init.mmi.laser.sh | 2 +- rootdir/bin/init.mmi.touch.sh | 2 +- rootdir/bin/init.oem.hw.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/bin/init.mmi.laser.sh b/rootdir/bin/init.mmi.laser.sh index e65ca1d..fade707 100755 --- a/rootdir/bin/init.mmi.laser.sh +++ b/rootdir/bin/init.mmi.laser.sh @@ -9,7 +9,7 @@ debug() notice() { echo "$*" - echo "$scriptname: $*" > /dev/kmsg + log -t "$scriptname" -i "$*" } error_and_leave() diff --git a/rootdir/bin/init.mmi.touch.sh b/rootdir/bin/init.mmi.touch.sh index 8bf9a82..5075397 100755 --- a/rootdir/bin/init.mmi.touch.sh +++ b/rootdir/bin/init.mmi.touch.sh @@ -56,7 +56,7 @@ debug() notice() { echo "$*" - echo "$scriptname: $*" > /dev/kmsg + log -t "$scriptname" -i "$*" } sanity_check() diff --git a/rootdir/bin/init.oem.hw.sh b/rootdir/bin/init.oem.hw.sh index 4973f47..72a7cbe 100755 --- a/rootdir/bin/init.oem.hw.sh +++ b/rootdir/bin/init.oem.hw.sh @@ -181,7 +181,7 @@ debug() notice() { echo "$*" - echo "$scriptname: $*" > /dev/kmsg + log -t "$scriptname" -i "$*" } add_device_params()