diff options
author | Chia-chi Yeh <chiachi@android.com> | 2009-06-19 14:59:08 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2009-06-19 15:53:28 +0800 |
commit | 88dc657d50cb3289a9011828c497eee996ed958c (patch) | |
tree | 8d703a2e08d9dbe206cd5fdadeb535672252a6d5 /include | |
parent | abd54c1b78983ce425250dba137e203b7020637e (diff) | |
download | system_core-88dc657d50cb3289a9011828c497eee996ed958c.zip system_core-88dc657d50cb3289a9011828c497eee996ed958c.tar.gz system_core-88dc657d50cb3289a9011828c497eee996ed958c.tar.bz2 |
Add device, property, directory, and file permissions for VPN.
Diffstat (limited to 'include')
-rw-r--r-- | include/private/android_filesystem_config.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 4590626..6ba574b 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -62,6 +62,7 @@ #define AID_NET_BT 3002 /* bluetooth: create sco, rfcomm or l2cap sockets */ #define AID_INET 3003 /* can create AF_INET and AF_INET6 sockets */ #define AID_NET_RAW 3004 /* can create raw INET sockets */ +#define AID_NET_ADMIN 3005 /* can configure interfaces and routing tables. */ #define AID_MISC 9998 /* access to misc storage */ #define AID_NOBODY 9999 @@ -101,6 +102,7 @@ static struct android_id_info android_ids[] = { { "keystore", AID_KEYSTORE, }, { "inet", AID_INET, }, { "net_raw", AID_NET_RAW, }, + { "net_admin", AID_NET_ADMIN, }, { "misc", AID_MISC, }, { "nobody", AID_NOBODY, }, }; @@ -135,7 +137,7 @@ static struct fs_path_config android_dirs[] = { { 00750, AID_ROOT, AID_SHELL, "sbin" }, { 00755, AID_ROOT, AID_SHELL, "system/bin" }, { 00755, AID_ROOT, AID_SHELL, "system/xbin" }, - { 00777, AID_ROOT, AID_ROOT, "system/etc/ppp" }, /* REMOVE */ + { 00755, AID_ROOT, AID_ROOT, "system/etc/ppp" }, { 00777, AID_ROOT, AID_ROOT, "sdcard" }, { 00755, AID_ROOT, AID_ROOT, 0 }, }; @@ -147,20 +149,18 @@ static struct fs_path_config android_dirs[] = { ** and will allow partial matches. */ static struct fs_path_config android_files[] = { - { 00555, AID_ROOT, AID_ROOT, "system/etc/ppp/ip-up" }, - { 00555, AID_ROOT, AID_ROOT, "system/etc/ppp/ip-down" }, { 00440, AID_ROOT, AID_SHELL, "system/etc/init.goldfish.rc" }, { 00550, AID_ROOT, AID_SHELL, "system/etc/init.goldfish.sh" }, { 00440, AID_ROOT, AID_SHELL, "system/etc/init.trout.rc" }, { 00550, AID_ROOT, AID_SHELL, "system/etc/init.ril" }, { 00550, AID_ROOT, AID_SHELL, "system/etc/init.testmenu" }, - { 00550, AID_ROOT, AID_SHELL, "system/etc/init.gprs-pppd" }, { 00550, AID_DHCP, AID_SHELL, "system/etc/dhcpcd/dhcpcd-run-hooks" }, { 00440, AID_BLUETOOTH, AID_BLUETOOTH, "system/etc/dbus.conf" }, { 00440, AID_BLUETOOTH, AID_BLUETOOTH, "system/etc/bluez/hcid.conf" }, { 00440, AID_BLUETOOTH, AID_BLUETOOTH, "system/etc/bluez/input.conf" }, { 00440, AID_BLUETOOTH, AID_BLUETOOTH, "system/etc/bluez/audio.conf" }, - { 00440, AID_RADIO, AID_AUDIO, "/system/etc/AudioPara4.csv" }, + { 00440, AID_RADIO, AID_AUDIO, "system/etc/AudioPara4.csv" }, + { 00555, AID_ROOT, AID_ROOT, "system/etc/ppp/*" }, { 00644, AID_SYSTEM, AID_SYSTEM, "data/app/*" }, { 00644, AID_SYSTEM, AID_SYSTEM, "data/app-private/*" }, { 00644, AID_APP, AID_APP, "data/data/*" }, |