Open waptaff opened 2 years ago
It is the caller's responsibility to pass a sane value as TMPDIR. Trying to outsmart the user by re-interpreting that value is calling for trouble and perhaps even opens some attack surface on some systems due to such surprising behavior.
Hi.
The
mktemp
flag onsys-auth/pambase
allows the per-user/tmp
directory feature (for instance, userfred
hasTMP
andTMPDIR
set to/tmp/.private/fred
).Running
eix-remote
as root gives this error:I suspect this error is happening because
eix-drop-permissions
does not involve PAM hence does not resetTMP
andTMPDIR
.Perhaps the
${TMPDIR:-/tmp}
constructs in/usr/share/eix/eix-functions
should be updated to first check ifTMPDIR
is read/writable.