Skip to content

Commit

Permalink
Do not use priviledge separation on Android, as we are going to run s…
Browse files Browse the repository at this point in the history
…shd as a regular user on unpriviledged port
  • Loading branch information
dmikushin committed Jan 31, 2020
1 parent 8f0d112 commit e587a53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions servconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,14 @@ fill_default_server_options(ServerOptions *options)

assemble_algorithms(options);

#ifdef __ANDROID__
if (use_privsep == -1)
use_privsep = PRIVSEP_OFF;
#else
/* Turn privilege separation and sandboxing on by default */
if (use_privsep == -1)
use_privsep = PRIVSEP_ON;
#endif

#define CLEAR_ON_NONE(v) \
do { \
Expand Down

0 comments on commit e587a53

Please sign in to comment.