Skip to content
Snippets Groups Projects
Commit 9bb4d411 authored by Chia-chi Yeh's avatar Chia-chi Yeh
Browse files

init: update permissions for VPN.

VPN no longer uses system properties to keep network parameters.
Besides, profiles are now stored and encrypted by keystore.

Change-Id: I7575f04f350b7d8d5ba7008eb874a72180d057e8
parent ea744141
No related branches found
No related tags found
No related merge requests found
...@@ -75,8 +75,6 @@ struct { ...@@ -75,8 +75,6 @@ struct {
{ "wlan.", AID_SYSTEM, 0 }, { "wlan.", AID_SYSTEM, 0 },
{ "dhcp.", AID_SYSTEM, 0 }, { "dhcp.", AID_SYSTEM, 0 },
{ "dhcp.", AID_DHCP, 0 }, { "dhcp.", AID_DHCP, 0 },
{ "vpn.", AID_SYSTEM, 0 },
{ "vpn.", AID_VPN, 0 },
{ "debug.", AID_SHELL, 0 }, { "debug.", AID_SHELL, 0 },
{ "log.", AID_SHELL, 0 }, { "log.", AID_SHELL, 0 },
{ "service.adb.root", AID_SHELL, 0 }, { "service.adb.root", AID_SHELL, 0 },
......
...@@ -144,9 +144,8 @@ on post-fs-data ...@@ -144,9 +144,8 @@ on post-fs-data
mkdir /data/misc/bluetooth 0770 system system mkdir /data/misc/bluetooth 0770 system system
mkdir /data/misc/keystore 0700 keystore keystore mkdir /data/misc/keystore 0700 keystore keystore
mkdir /data/misc/keychain 0771 system system mkdir /data/misc/keychain 0771 system system
mkdir /data/misc/vpn 0770 system system mkdir /data/misc/vpn 0770 system vpn
mkdir /data/misc/systemkeys 0700 system system mkdir /data/misc/systemkeys 0700 system system
mkdir /data/misc/vpn/profiles 0770 system system
# give system access to wpa_supplicant.conf for backup and restore # give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi 0770 wifi wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf chmod 0660 /data/misc/wifi/wpa_supplicant.conf
...@@ -461,8 +460,8 @@ service flash_recovery /system/etc/install-recovery.sh ...@@ -461,8 +460,8 @@ service flash_recovery /system/etc/install-recovery.sh
service racoon /system/bin/racoon service racoon /system/bin/racoon
class main class main
socket racoon stream 600 system system socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources. # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port.
group net_admin group vpn net_admin
disabled disabled
oneshot oneshot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment