tftpd: handle restricted user namespaces on Linux
commit1dc6d558115746f50e78ba8d84915a56ae66ec5f
authorH. Peter Anvin <hpa@zytor.com>
Wed, 29 May 2024 23:01:54 +0000 (29 16:01 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 29 May 2024 23:01:54 +0000 (29 16:01 -0700)
treee62ef5a9c148c8ac2a2550910c7293d158e13b38
parent15c4f369ee741e9205dc28ce631aaf6799193b04
tftpd: handle restricted user namespaces on Linux

If the tftpd process lacks the privilege to set its uid, gid, or
groups, then assume it is already restricted in the way the
administrator requested, if and only if EPERM is returned.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
tftpd/tftpd.c