reassign 544927 update-inetd 4.32
kthxbye

Hi Stefan,

please always also reply to either both, the submitter _and_ the
bugreport or to <bugid>[email protected] -- The submitter doesn't get
messages which are sent to the bugreport by default. In this case I
only saw your question on the web at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544927.

Stefan Bauer schrieb am Thu, Sep 03, 2009 at 09:05:15PM +0200:
> Is /tmp mounted with noexec?

You're right. It is. Totally forgot about that.

But: Even if I do "mount -o remount,exec,dev,suid /tmp" manually and
then install the package again, the same thing happens:

3/1/0 r...@nemo:pts/3 00:35:26 [~] # mount -o remount,exec,dev,suid /tmp
4/0/0 r...@nemo:pts/3 00:35:44 [~] # mount | fgrep /tmp
tmpfs on /tmp type tmpfs (rw)
5/0/0 r...@nemo:pts/3 00:35:48 [~] # dpkg -i
/var/cache/apt/archives/oidentd_2.0.8-3_i386.deb 
(Reading database ... 117510 files and directories currently installed.)
Preparing to replace oidentd 2.0.8-2 (using .../oidentd_2.0.8-3_i386.deb) ...
Error installing /tmp/inetdcf0nJki to /etc/inetd.conf: Invalid cross-device link
dpkg: warning: old pre-removal script returned error exit status 18
dpkg - trying script from the new package instead ...
Error installing /tmp/inetdcflWmej to /etc/inetd.conf: Invalid cross-device link
dpkg: error processing /var/cache/apt/archives/oidentd_2.0.8-3_i386.deb 
(--install):
 subprocess new pre-removal script returned error exit status 18
Error installing /tmp/inetdcfU05QI to /etc/inetd.conf: Invalid cross-device link
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 18
Errors were encountered while processing:
 /var/cache/apt/archives/oidentd_2.0.8-3_i386.deb
6/1/0 r...@nemo:pts/3 00:36:03 [~] # 

Which is basically what I expected, because the error message clearly
states that something tried to do a "cross-device link" from
/tmp/whatever to /etc/inetd.conf, so the error can't be from noexec,
even if that would have caused further errors.

> A workaround is to set in /etc/apt/apt.conf
>
> DPkg::Pre-Install-Pkgs {"mount -o remount,exec /tmp";};
> DPkg::Post-Invoke {"mount -o remount /tmp";};

Well, my workaround for the dpkg's typical "/tmp mounted noexec"
problems is slightly different, but at the same place:

// Needed if /tmp is mounted noexec
APT::ExtractTemplates::TempDir "/dev/shm";

This is IMHO more elegant, but may catch less issues than your
suggestion.

But anyway, I found the culprit and it is not oidentd, but the
recently updated update-inetd (4.32). To be more exact, it's the patch
to http://bugs.debian.org/63504 which also introduced the error
message "Error installing ..." we see above.

So I reassign this bug to update-inetd. Sorry for bothering you, but I
was a little bit short on time when I discovered this issue and had
no time for deeper debugging...

It has been reported against sane-utils already this morning in
http://bugs.debian.org/544841 and reassigned to update-inetd, too.

Serafeim: Feel free to merge this bug with the one above.
 
                Regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.asciiribbon.org/              | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to