system/corennnnn
Revision | ae8db689f76256fee37ae6b5b390090fc24ae2b0 (tree) |
---|---|
Time | 2016-08-24 23:11:35 |
Author | Nikhilesh Reddy <reddyn@code...> |
Commiter | Linux Build Service Account |
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
@@ -99,6 +99,8 @@ | ||
99 | 99 | #define AID_OEM_RESERVED_START 2900 |
100 | 100 | |
101 | 101 | #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 */ | |
102 | 104 | |
103 | 105 | #define AID_OEM_RESERVED_END 2999 |
104 | 106 |
@@ -115,6 +117,9 @@ | ||
115 | 117 | #define AID_READPROC 3009 /* Allow /proc read access */ |
116 | 118 | #define AID_WAKELOCK 3010 /* Allow system wakelock read/write access */ |
117 | 119 | |
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 | + | |
118 | 123 | /* The range 5000-5999 is also reserved for OEM, and must never be used here. */ |
119 | 124 | #define AID_OEM_RESERVED_2_START 5000 |
120 | 125 | #define AID_OEM_RESERVED_2_END 5999 |
@@ -208,6 +213,9 @@ static const struct android_id_info android_ids[] = { | ||
208 | 213 | |
209 | 214 | { "qcom_diag", AID_QCOM_DIAG, }, |
210 | 215 | |
216 | + { "rfs", AID_RFS, }, | |
217 | + { "rfs_shared", AID_RFS_SHARED, }, | |
218 | + | |
211 | 219 | { "net_bt_admin", AID_NET_BT_ADMIN, }, |
212 | 220 | { "net_bt", AID_NET_BT, }, |
213 | 221 | { "inet", AID_INET, }, |
@@ -220,6 +228,9 @@ static const struct android_id_info android_ids[] = { | ||
220 | 228 | { "wakelock", AID_WAKELOCK, }, |
221 | 229 | { "sensors", AID_SENSORS, }, |
222 | 230 | |
231 | + { "rfs_old", AID_RFS_OLD, }, | |
232 | + { "rfs_shared_old", AID_RFS_SHARED_OLD, }, | |
233 | + | |
223 | 234 | { "everybody", AID_EVERYBODY, }, |
224 | 235 | { "misc", AID_MISC, }, |
225 | 236 | { "nobody", AID_NOBODY, }, |