shadow/libmisc
Samanta Navarro 6491fef1e0 libmisc: Use safer chroot/chdir sequence
OpenSSH and coreutils' chroot call chroot first and then chdir. Doing it
this way is a bit safer because otherwise something could happen between
chdir and chroot to the specified path (like exchange of links) so the
working directory would not end up within the chroot environment.

This is a purely defensive measure.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
2023-05-25 08:25:42 -05:00
..
.indent.pro
addgrps.c
age.c
agetpass.c
alloc.c
audit_help.c
basename.c
bit.c
btrfs.c
chkname.c
chkname.h
chowndir.c
chowntty.c
cleanup_group.c
cleanup_user.c
cleanup.c
console.c
copydir.c
csrand.c
date_to_str.c Fix crash with large timestamps 2023-03-28 13:00:38 +02:00
entry.c
env.c
failure.c
failure.h
find_new_gid.c
find_new_sub_gids.c
find_new_sub_uids.c
find_new_uid.c
getdate.h
getdate.y
getgr_nam_gid.c
getrange.c
gettime.c
hushed.c
idmapping.c
idmapping.h
isexpired.c
limits.c
list.c
log.c
loginprompt.c login_prompt: Simplify login_prompt API 2023-05-03 07:54:28 -05:00
mail.c
Makefile.am
mempcpy.c
motd.c
myname.c
obscure.c libmisc, man: Drop old check and advice for complex character sets in passwords 2023-04-27 09:16:08 +02:00
pam_pass_non_interactive.c
pam_pass.c
prefix_flag.c process_prefix_flag: Drop privileges 2023-05-18 15:36:59 +02:00
pwd2spwd.c
pwd_init.c
pwdcheck.c
remove_tree.c
rlogin.c
root_flag.c libmisc: Use safer chroot/chdir sequence 2023-05-25 08:25:42 -05:00
salt.c
setugid.c
setupenv.c Remove some static char arrays 2023-05-11 11:05:29 -05:00
shell.c
stpecpy.c
stpeprintf.c
strtoday.c
sub.c libmisc: Use safer chroot/chdir sequence 2023-05-25 08:25:42 -05:00
sulog.c
ttytype.c
tz.c
ulimit.c
user_busy.c
utmp.c Simplify is_my_tty() 2023-03-28 13:00:38 +02:00
valid.c
xgetgrgid.c
xgetgrnam.c
xgetpwnam.c
xgetpwuid.c
xgetspnam.c
xgetXXbyYY.c
yesno.c libmisc/yesno.c: Fix regression 2023-04-28 11:22:48 -05:00