diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-15 18:27:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-15 18:27:05 +0200 |
commit | 585541e8e338a85b9f18cf5f6ed88758b29e61f2 (patch) | |
tree | 6d17c3f52ecc3b9e05430793a923edb9b2551683 /networking | |
parent | dd1eb413f28a2a8b5768056e1967e87b2363dc32 (diff) | |
download | busybox-w32-585541e8e338a85b9f18cf5f6ed88758b29e61f2.tar.gz busybox-w32-585541e8e338a85b9f18cf5f6ed88758b29e61f2.tar.bz2 busybox-w32-585541e8e338a85b9f18cf5f6ed88758b29e61f2.zip |
start_stop_daemon: set complementary group ids too. Closes 3253
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/inetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index fc6847bb5..26b66992d 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1414,7 +1414,7 @@ int inetd_main(int argc UNUSED_PARAM, char **argv) | |||
1414 | bb_error_msg("non-root must run services as himself"); | 1414 | bb_error_msg("non-root must run services as himself"); |
1415 | goto do_exit1; | 1415 | goto do_exit1; |
1416 | } | 1416 | } |
1417 | if (pwd->pw_uid) { | 1417 | if (pwd->pw_uid != 0) { |
1418 | if (sep->se_group) | 1418 | if (sep->se_group) |
1419 | pwd->pw_gid = grp->gr_gid; | 1419 | pwd->pw_gid = grp->gr_gid; |
1420 | /* initgroups, setgid, setuid: */ | 1420 | /* initgroups, setgid, setuid: */ |