Re: multiuser disabled - fail more gracefully

2021-03-10 Thread Geoff Winkless
On Tue, 9 Mar 2021 at 15:43, Kazuo Kuroi wrote: > That's a good suggestion. but I suggest that if your code can't run on > UNIX platforms that it would need an include guard against it. I completely understand your concern. I would hope that the changes would be system-agnostic: the idea would

Re: multiuser disabled - fail more gracefully

2021-03-10 Thread Hans Harder
Indeed that is the correct question, because you can easily do #if DROPBEAR_SVR_MULTIUSER if (getuid() != ses.authstate.pw_uid) { setgid and setuid part } #endif On Wed, Mar 10, 2021 at 11:41 AM Geoff Winkless wrote: > > On Tue, 9 Mar 2021 at 15:43, Kazuo Kuroi wrote: > >

Re: multiuser disabled - fail more gracefully

2021-03-10 Thread Geoff Winkless
On Wed, 10 Mar 2021 at 12:14, Hans Harder wrote: > Indeed that is the correct question, because you can easily do > > #if DROPBEAR_SVR_MULTIUSER >if (getuid() != ses.authstate.pw_uid) { > setgid and setuid part >} > #endif Well yes, if you're confident that setgid() and