shadow/src
Samanta Navarro 7b686d8bd6 newgrp/useradd: always set SIGCHLD to default
The tools newgrp and useradd expect waitpid to behave as described in
its manual page. But the notes indicate that if SIGCHLD is ignored,
waitpid behaves differently.

A user could set SIGCHLD to ignore before starting newgrp through exec.
Children of newgrp would not become zombies and their PIDs could be
reassigned before newgrp could call kill with the child pid and SIGCONT.

The useradd tool is not installed setuid, but I have added the default
there as well (copied from vipw).

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
2023-04-26 08:27:45 -05:00
..
.gitignore getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c libmisc: Move xmalloc.c to alloc.c 2023-02-23 20:28:43 -06:00
check_subid_range.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
chfn.c libmisc: Move xmalloc.c to alloc.c 2023-02-23 20:28:43 -06:00
chgpasswd.c Use the noreturn attribute, rather than comments 2023-02-08 22:01:01 -06:00
chpasswd.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
chsh.c libmisc: Move xmalloc.c to alloc.c 2023-02-23 20:28:43 -06:00
expiry.c Use the noreturn attribute, rather than comments 2023-02-08 22:01:01 -06:00
faillog.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
free_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
get_subid_owners.c Declare file local functions static 2022-01-03 15:09:17 +01:00
getsubids.c Declare file local functions static 2022-01-03 15:09:17 +01:00
gpasswd.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
groupadd.c Fix typo in groupadd usage 2023-03-31 16:04:42 +02:00
groupdel.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
groupmems.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
groupmod.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
groups.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
grpck.c Use the noreturn attribute, rather than comments 2023-02-08 22:01:01 -06:00
grpconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
id.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
lastlog.c Fix typos 2023-02-16 13:23:08 -06:00
login_nopam.c Fix typos 2023-02-16 13:23:08 -06:00
login.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
logoutd.c Cosmetic fixes 2022-12-22 10:31:43 +01:00
Makefile.am Fix VPATH build 2023-02-13 10:01:17 +01:00
new_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newgidmap.c newuidmap and newgidmap: support passing pid as fd 2023-02-24 12:35:49 -06:00
newgrp.c newgrp/useradd: always set SIGCHLD to default 2023-04-26 08:27:45 -05:00
newuidmap.c newuidmap and newgidmap: support passing pid as fd 2023-02-24 12:35:49 -06:00
newusers.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
nologin.c Update licensing info 2021-12-23 19:36:50 -06:00
passwd.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
pwck.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
pwconv.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
pwunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
su.c Fix su(1) silent truncation 2023-03-28 13:00:38 +02:00
suauth.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
sulogin.c Call NULL by its name 2023-02-02 13:08:30 -06:00
useradd.c newgrp/useradd: always set SIGCHLD to default 2023-04-26 08:27:45 -05:00
userdel.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
usermod.c useradd/usermod: add --selinux-range argument 2023-04-19 09:19:19 +02:00
vipw.c Use safer allocation macros 2023-02-23 20:28:43 -06:00