diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-11-09 16:19:42 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-11-09 16:19:42 +0100 |
commit | 2fee2bce6f9c67c0836598e340bee8ae2e980212 (patch) | |
tree | 1218f997470965b7686a17a20767f072b964219d | |
parent | 1b510900e24459353922a1bc83c0b58bc8bafe1c (diff) | |
download | busybox-w32-2fee2bce6f9c67c0836598e340bee8ae2e980212.tar.gz busybox-w32-2fee2bce6f9c67c0836598e340bee8ae2e980212.tar.bz2 busybox-w32-2fee2bce6f9c67c0836598e340bee8ae2e980212.zip |
inetd: fix for running by non-root
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 67984accb..4dfa0089a 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1488,7 +1488,7 @@ int inetd_main(int argc UNUSED_PARAM, char **argv) | |||
1488 | bb_error_msg("non-root must run services as himself"); | 1488 | bb_error_msg("non-root must run services as himself"); |
1489 | goto do_exit1; | 1489 | goto do_exit1; |
1490 | } | 1490 | } |
1491 | if (pwd->pw_uid != 0) { | 1491 | if (pwd->pw_uid != real_uid) { |
1492 | if (sep->se_group) | 1492 | if (sep->se_group) |
1493 | pwd->pw_gid = grp->gr_gid; | 1493 | pwd->pw_gid = grp->gr_gid; |
1494 | /* initgroups, setgid, setuid: */ | 1494 | /* initgroups, setgid, setuid: */ |