Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing privilege drop in 2.0.17 under OpenWrt / MIPS #607

Closed
sz4bi opened this issue Oct 8, 2018 · 5 comments
Closed

Missing privilege drop in 2.0.17 under OpenWrt / MIPS #607

sz4bi opened this issue Oct 8, 2018 · 5 comments

Comments

@sz4bi
Copy link

sz4bi commented Oct 8, 2018

After updating from 2.0.16 to 2.0.17, dnscrypt-proxy is not starting on OpenWRT / MIPS (TPLink WDR3600) platform until I comment out the "user_name" option in the configuration file:

daemon.alert dnscrypt-proxy[32619]: user: Current not implemented on linux/mips

@jedisct1
Copy link
Member

jedisct1 commented Oct 8, 2018

Apparently, on Linux, the HOME and USER environment variables need to be set in order for this to work.

I don't know why :)

@jedisct1
Copy link
Member

jedisct1 commented Oct 8, 2018

e4a1245 should fix it.

@sz4bi
Copy link
Author

sz4bi commented Oct 8, 2018

Thanks for the quick fix! Now starting with user_name 'nobody' enabled, but after that just crashing

Mon Oct  8 20:24:25 2018 daemon.notice dnscrypt-proxy[23802]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:25 2018 daemon.notice dnscrypt-proxy[23802]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:31 2018 daemon.notice dnscrypt-proxy[23815]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:32 2018 daemon.notice dnscrypt-proxy[23815]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:38 2018 daemon.notice dnscrypt-proxy[23822]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:38 2018 daemon.notice dnscrypt-proxy[23822]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:45 2018 daemon.notice dnscrypt-proxy[23828]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:45 2018 daemon.notice dnscrypt-proxy[23828]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:51 2018 daemon.notice dnscrypt-proxy[23836]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:51 2018 daemon.notice dnscrypt-proxy[23836]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:59 2018 daemon.notice dnscrypt-proxy[23845]: Source [public-resolvers.md] loaded
Mon Oct  8 20:24:59 2018 daemon.notice dnscrypt-proxy[23845]: dnscrypt-proxy 2.0.17
Mon Oct  8 20:24:59 2018 daemon.info procd: Instance dnscrypt-proxy2::instance1 s in a crash loop 6 crashes, 2 seconds since last crash

Btw I used the GOMIPS=softfloat env. var for compilation, because without it I got Illegal instruction error at runtime.

@jedisct1
Copy link
Member

jedisct1 commented Oct 8, 2018

Does it work if you don't change anything, only remove user_name?

@sz4bi
Copy link
Author

sz4bi commented Oct 8, 2018

yes, it's working if I comment out user_name, using it this way since compilation

@DNSCrypt DNSCrypt locked and limited conversation to collaborators Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants