You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have been trying to start tun2socks using init rc file as a system_ext service during Android startup in my AOSP project. The rc file is executed and tun2socks seems to be called. But it is exiting with status 1 without any error or selinux violation: I init : Service 'tun2socks' (pid 3476) exited with status 1
My init_tun2socks.rc content:
on early-init
write /dev/kmsg "tun2socks: early-init triggered"
service tun2socks /system_ext/bin/tun2socks --device tun://tun0 -proxy socks5://<SOCKS server IP address>:1081 -fwmark 1 -tun-post-up "/system_ext/bin/tun2socks_post_setup.sh"
user root
group system root inet net_admin
class main
capabilities NET_RAW NET_ADMIN
seclabel u:r:tun2socks:s0
disabled
on property:sys.boot_completed=1
write /dev/kmsg "tun2socks: sys.boot_completed=1 detected, attempting to start tun2socks service."
start tun2socks
write /dev/kmsg "tun2socks: start tun2socks command issued."
Do anyone have any experience about the setup in rc file or selinux to start tun2socks as part of Android startup (via init)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been trying to start tun2socks using init rc file as a system_ext service during Android startup in my AOSP project. The rc file is executed and tun2socks seems to be called. But it is exiting with status 1 without any error or selinux violation:
I init : Service 'tun2socks' (pid 3476) exited with status 1
My init_tun2socks.rc content:
Do anyone have any experience about the setup in rc file or selinux to start tun2socks as part of Android startup (via init)?
Beta Was this translation helpful? Give feedback.
All reactions