freebsd-skq/libexec
Yaroslav Tykhiy ce9287fc02 Give the code around chroot(2)/chdir(2) a major overhaul by
separating its part around chroot(2) from that around initial
chdir(2).  This makes the below changes really easy.

Move seteuid(to user's uid) to before calling chdir(2).  There are
two goals to achieve by that.  First, NFS mounted home directories
with restrictive permissions become accessible (local superuser
can't access them if not mapped to uid 0 on the remote side
explicitly.)  Second, all the permissions to the home directory
pathname components become effective; previously a user could be
carried to any local directory despite its permissions since the
chdir(2) was done with euid 0.  This reduces possible impact from
FTP server misconfiguration, e.g., assigning a wrong home directory
to a user.

Implement the "/./" feature.  Now a guest or user subject to chrooting
may have "/./" in his login directory, which separates his chroot
directory from his home directory inside the chrooted environment.
This works for ftpchroot(5) as well.

PR:		bin/17843 bin/23944
2003-01-29 10:07:27 +00:00
..
atrun mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
bootpd Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
comsat Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
fingerd Mark the logerr() function __printflike(). 2002-10-13 11:26:37 +00:00
ftpd Give the code around chroot(2)/chdir(2) a major overhaul by 2003-01-29 10:07:27 +00:00
getNAME
getty Fix a typo (missed &&). 2003-01-20 10:33:35 +00:00
lukemftpd We have a usable 'LOGIN_NAME_MAX' now. 2003-01-06 04:42:20 +00:00
mail.local Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
makekey The .Nm utility 2002-07-06 19:19:48 +00:00
mknetid Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
named-xfer
pppoed The .Nm utility 2002-07-06 19:19:48 +00:00
pt_chown Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin 2003-01-02 20:44:41 +00:00
rbootd The .Nm utility 2002-07-06 19:19:48 +00:00
revnetgroup Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00
rexecd The .Nm utility 2002-07-06 19:19:48 +00:00
rlogind Fixed the abuses of .Ql visible on stderr in troff mode. 2002-12-23 16:04:51 +00:00
rpc.rquotad Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
rpc.rstatd Rename local function havedisk() to haveadisk() to avoid conflict a 2002-10-02 18:29:50 +00:00
rpc.rusersd Port to TI/RPC and/or IPV6. 2002-07-15 18:51:57 +00:00
rpc.rwalld Port to TI/RPC and/or IPV6. 2002-07-15 18:51:57 +00:00
rpc.sprayd Port to TI/RPC and/or IPV6. 2002-07-15 18:51:57 +00:00
rshd The .Nm utility 2002-07-06 19:19:48 +00:00
rtld-aout Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
rtld-elf Change the way ELF coredumps are handled. Instead of unconditionally 2002-12-16 19:24:43 +00:00
save-entropy
smrsh Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
talkd The .Nm utility 2002-07-06 19:19:48 +00:00
tcpd
telnetd Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:10:45 +00:00
tftpd The .Nm utility 2002-07-06 19:19:48 +00:00
xtend The .Nm utility 2002-07-06 19:19:48 +00:00
ypxfr english(4) police. 2002-12-27 12:15:40 +00:00
Makefile Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin 2003-01-02 20:44:41 +00:00
Makefile.inc