[pkg-apparmor] Bug#1142783: broken $TMPDIR handling in postinst
Harald Dunkel
harri at afaics.de
Wed Jul 29 19:25:48 BST 2026
Please note that I don't set TMPDIR. This weird pam module that sneaked
in via some dependency does. I don't run mktemp, either. This can be
found in apparmor.postinst. Of course I could examine all the postinst
scripts before running apt install of some packages, and unset all
these variables that might lead into problems, but I doubt that this is
the way to follow.
Running mktemp I would either give it a dedicated path for a temporary
file, or I would unset a bad TMPDIR. Maybe ignoring a bad TMPDIR would
be the job of mktemp; I cannot say.
Regards
Harri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-apparmor-team/attachments/20260729/15cc20a5/attachment.sig>
More information about the pkg-apparmor-team
mailing list