summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSreelakshmi Gownipalli <sgownipa@codeaurora.org>2015-07-16 12:22:52 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:35 -0600
commitb198304a56bad86a08b5dd647113c61489dcb564 (patch)
treed2f634d8dc2d53996d9bbef7f074e0f02d131449
parent9465c1860a4291700ad464d5cbb4369f04093605 (diff)
downloadsystem_core-b198304a56bad86a08b5dd647113c61489dcb564.zip
system_core-b198304a56bad86a08b5dd647113c61489dcb564.tar.gz
system_core-b198304a56bad86a08b5dd647113c61489dcb564.tar.bz2
diag: Add new qcom_diag group to access /dev/diag
This change adds the definition of qcom_diag and also modify the /dev/diag node group to qcom_diag. Change-Id: I07bd099c76f3fd2685f3a6698e37314a0a2c8f44
-rw-r--r--include/private/android_filesystem_config.h2
-rw-r--r--rootdir/ueventd.rc2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index cf3e603..b3682c6 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -97,6 +97,7 @@
#define AID_NET_BW_STATS 3006 /* read bandwidth statistics */
#define AID_NET_BW_ACCT 3007 /* change bandwidth statistics accounting */
#define AID_NET_BT_STACK 3008 /* bluetooth: access config files */
+#define AID_QCOM_DIAG 3009 /* can read/write /dev/diag */
#define AID_RFS 3012 /* Remote Filesystem for peripheral processors */
#define AID_RFS_SHARED 3013 /* Shared files for Remote Filesystem for peripheral processors */
@@ -175,6 +176,7 @@ static const struct android_id_info android_ids[] = {
{ "shell", AID_SHELL, },
{ "cache", AID_CACHE, },
{ "diag", AID_DIAG, },
+ { "qcom_diag", AID_QCOM_DIAG, },
{ "net_bt_admin", AID_NET_BT_ADMIN, },
{ "net_bt", AID_NET_BT, },
diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc
index b735dc3..33f29f9 100644
--- a/rootdir/ueventd.rc
+++ b/rootdir/ueventd.rc
@@ -28,7 +28,7 @@ subsystem adf
/dev/dri/* 0666 root graphics
# these should not be world writable
-/dev/diag 0660 radio radio
+/dev/diag 0660 system qcom_diag
/dev/diag_arm9 0660 radio radio
/dev/android_adb 0660 adb adb
/dev/android_adb_enable 0660 adb adb