Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51afbf58 authored by Chia-chi Yeh's avatar Chia-chi Yeh
Browse files

rootdir: Modify init.rc to run mtpd/racoon as a non-root user.

Note that this change requires a new prebuilt kernel for AID_NET_ADMIN.
parent 383688b5
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -286,13 +286,17 @@ service installd /system/bin/installd
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
    oneshot
    oneshot


service racoon /system/bin/racoon -F -f /etc/racoon/racoon.conf
service racoon /system/bin/racoon
    socket racoon stream 600 system system
    socket racoon stream 600 system system
    # racoon will setuid to vpn after getting necessary resources.
    group net_admin keystore
    disabled
    disabled
    oneshot
    oneshot


service mtpd /system/bin/mtpd
service mtpd /system/bin/mtpd
    socket mtpd stream 600 system system
    socket mtpd stream 600 system system
    user vpn
    group vpn net_admin net_raw
    disabled
    disabled
    oneshot
    oneshot