Comment 2 for bug 90085

On 12.05 22:20, Tollef Fog Heen wrote:
+> > I't like to have a possibility to define temporary directory for
> > installing packages, at least for running install/rm scripts.
>
> > The best way for that imho would be an option to dpkg (--tmpdir ?).
>
> I'm not sure what you want a temporary directory for, postinst scripts
> can use tmpdir(1), or you might be looking for --root?
>
> Please give us feedback so we can get an understanding of what you are
> trying to accomplish.

my problem is, I (want to) have /tmp mounted with noexec option, because of
security reasons.

dpkg extracts preconfigure scripts into /tmp. in such case I get these
errors:

Preconfiguring packages ...
Can't exec "/tmp/config.48531": Permission denied at
/usr/share/perl/5.6.1/IPC/Open3.pm line 159.
open2: exec of /tmp/config.48531 configure failed at
/usr/share/perl5/Debconf/ConfModule.pm line 44
xinetd failed to preconfigure, with exit status 255

So I'd invite configuration option which would extract those scripts into
a directory where exec is allowed.
--
Matus UHLAR - fantomas, <email address hidden> ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
M$ Win's are shit, do not use it !