Files
openwrt/package
Semih Baskan bd4d64e08b ppp: hand the pptp socket directory to the jailed pppd
The pptp plugin starts a call manager that binds its control socket in
/var/run/pptp/ and creates the directory first if it is missing. Since
pppd runs in ujail as user ppp, the call manager runs as that user too
and cannot create the directory in the root-owned /var/run. It exits
with "Could not make path to /var/run/pptp/...: Permission denied",
pppd ends with CONNECT_FAILED and netifd starts it again, in a loop.

Prepare /var/run/pptp the same way the jail setup prepares
/var/run/pppd: create it and chown it to ppp. The chown runs at every
setup, so a directory left by a pppd that ran as root is handed over
too.

Fixes: b855f33ea9 ("ppp: run pppd in ujail as an unprivileged user")
Signed-off-by: Semih Baskan <strst.gs@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26319
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-31 10:23:47 +01:00
..