Re: TMPDIR behaviour in maintainer scripts [was: Re: Bug#1023778: mysql-server-8.0: fails to restart on upgrade with libpam-tmpdir]
- To: Otto Kekäläinen <otto@kekalainen.net>
- Cc: Robie Basak <robie.basak@ubuntu.com>, "brian m. carlson" <sandals@crustytoothpaste.net>, 1023778@bugs.debian.org, debian-devel@lists.debian.org, 1022994@bugs.debian.org, Daniel Black <daniel@mariadb.org>, Sunil Mohan Adapa <sunil@medhas.org>
- Subject: Re: TMPDIR behaviour in maintainer scripts [was: Re: Bug#1023778: mysql-server-8.0: fails to restart on upgrade with libpam-tmpdir]
- From: Marco d'Itri <md@Linux.IT>
- Date: Sun, 13 Nov 2022 02:21:58 +0100
- Message-id: <[🔎] Y3BGtqJoHTHc4KLY@bongo.bofh.it>
- Mail-followup-to: Otto Kekäläinen <otto@kekalainen.net>, Robie Basak <robie.basak@ubuntu.com>, "brian m. carlson" <sandals@crustytoothpaste.net>, 1023778@bugs.debian.org, debian-devel@lists.debian.org, 1022994@bugs.debian.org, Daniel Black <daniel@mariadb.org>, Sunil Mohan Adapa <sunil@medhas.org>
- In-reply-to: <[🔎] CAOU6tABQ26_geaUbknCF+SoXd6ksURVqpn4RSjJUHBjDjf8orQ@mail.gmail.com>
- References: <Y2xLylfKj34Fbaou@tapette.crustytoothpaste.net> <[🔎] 20221110072617.GQ28869@mal.justgohome.co.uk> <[🔎] 87leoiwyse.fsf@err.no> <[🔎] CAOU6tABQ26_geaUbknCF+SoXd6ksURVqpn4RSjJUHBjDjf8orQ@mail.gmail.com>
On Nov 12, Otto Kekäläinen <otto@kekalainen.net> wrote:
> Instead of manually trying to manage TMPDIR env variable in various
> places, we should have a standardized way to run maintainer scripts in
> clean shell sessions that have all env variables set automatically
> correctly.
This is not about maintainer scripts, but about programs which change
the UID without sanitizing the environment.
--
ciao,
Marco
Attachment:
signature.asc
Description: PGP signature
Reply to: