tizen: Change the permission of /dev/kmsg to "root:log 660 *"
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 15 Dec 2017 06:56:43 +0000 (15:56 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:43 +0000 (16:37 +0100)
Through this patch, /usr/bin/dlog_logger (log:log) can access /dev/kmsg
without root credentials.

Change-Id: Ie955499c4a0bf1581cd64244cb94acfa6279719d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
[ Minor style change in commit log. ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
rules/55-udev-smack-default.rules

index 2eb84dc..c0e55cd 100644 (file)
@@ -3,7 +3,7 @@
 KERNEL=="null", SECLABEL{smack}="*"
 KERNEL=="zero", SECLABEL{smack}="*"
 KERNEL=="console", SECLABEL{smack}="*"
-KERNEL=="kmsg", SECLABEL{smack}="*"
+KERNEL=="kmsg", GROUP="log", MODE="0660", SECLABEL{smack}="*"
 KERNEL=="video*", SECLABEL{smack}="*"
 KERNEL=="card*", SECLABEL{smack}="*"
 KERNEL=="ptmx", SECLABEL{smack}="*"