• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revisionae8db689f76256fee37ae6b5b390090fc24ae2b0 (tree)
Time2016-08-24 23:11:35
AuthorNikhilesh Reddy <reddyn@code...>
CommiterLinux Build Service Account

Log Message

Allocate a new AIDs for RFS module

Allocate new AIDs to allow the RFS module
to run as after dropping privelages from
ROOT and to enforce strict permissions on
shared and private RFS files.

Change-Id: Ic4febd565df9f232f6c7571355ec10d8fd2e21bd

Change Summary

Incremental Difference

--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -99,6 +99,8 @@
9999 #define AID_OEM_RESERVED_START 2900
100100
101101 #define AID_QCOM_DIAG 2950 /* access to QTI diagnostic resources */
102+#define AID_RFS 2951 /* Remote Filesystem for peripheral processors */
103+#define AID_RFS_SHARED 2952 /* Shared files for Remote Filesystem for peripheral processors */
102104
103105 #define AID_OEM_RESERVED_END 2999
104106
@@ -115,6 +117,9 @@
115117 #define AID_READPROC 3009 /* Allow /proc read access */
116118 #define AID_WAKELOCK 3010 /* Allow system wakelock read/write access */
117119
120+#define AID_RFS_OLD 3012 /* DEPRECATED OLD ID FOR RFS, DO NOT USE */
121+#define AID_RFS_SHARED_OLD 3013 /* DEPRECATED OLD ID FOR RFS-SHARED */
122+
118123 /* The range 5000-5999 is also reserved for OEM, and must never be used here. */
119124 #define AID_OEM_RESERVED_2_START 5000
120125 #define AID_OEM_RESERVED_2_END 5999
@@ -208,6 +213,9 @@ static const struct android_id_info android_ids[] = {
208213
209214 { "qcom_diag", AID_QCOM_DIAG, },
210215
216+ { "rfs", AID_RFS, },
217+ { "rfs_shared", AID_RFS_SHARED, },
218+
211219 { "net_bt_admin", AID_NET_BT_ADMIN, },
212220 { "net_bt", AID_NET_BT, },
213221 { "inet", AID_INET, },
@@ -220,6 +228,9 @@ static const struct android_id_info android_ids[] = {
220228 { "wakelock", AID_WAKELOCK, },
221229 { "sensors", AID_SENSORS, },
222230
231+ { "rfs_old", AID_RFS_OLD, },
232+ { "rfs_shared_old", AID_RFS_SHARED_OLD, },
233+
223234 { "everybody", AID_EVERYBODY, },
224235 { "misc", AID_MISC, },
225236 { "nobody", AID_NOBODY, },