[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#179125: maintainer scripts tries to exec script in /tmp



Oliver Elphick <olly@lfix.co.uk> wrote:
> Cc'ed to debian-devel for comments.

> Explanation: the postinst generates a temporary script for use during
> installation. Its name is generated with mktemp and it is stored in
> /tmp; it is deleted by a trap when the postinst terminates.

> On Fri, 2003-01-31 at 00:22, Jamie Wilkinson wrote:

>> Preconfiguring packages ...
>> Can't exec "/tmp/config.151751": Permission denied at
>> /usr/share/perl/5.8.0/IPC/Open3.pm line 159.
> ...
>> I have /tmp mounted noexec for security reasons.
>> none on /tmp type tmpfs (rw,noexec,nosuid,nodev,size=500m)
 
>> You shouldn't rely on being able to execute scripts in /tmp.
[...]

I don't know who is right, but working around this issue should be
simple, just do it they way dpkg-preconfigure does and don't execute
the script directly. "/usr/bin/perl /tmp/config.151751" instead of
"/tmp/config.151751".
                cu andreas



Reply to: