ignore TERMINFO and HOME only if setuid/setgid/capability

This allows the root user to have its own private terminfo database,
but still prevent setuid binaries from using untrusted terminfos.
This commit is contained in:
Miroslav Lichvar 2023-08-22 09:17:15 +02:00
parent c3633ddaf9
commit cf5782b63e

View File

@ -128,7 +128,7 @@ common_options="\
--enable-pc-files \
--enable-xmc-glitch \
--disable-root-access \
--disable-root-environ \
--disable-setuid-environ \
--disable-stripping \
--disable-wattr-macros \
--with-cxx-shared \