[Top][All Lists]

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

Please disable test cp/parent-perm-race on hurd-i386

From: Samuel Thibault
Subject: Please disable test cp/parent-perm-race on hurd-i386
Date: Tue, 8 May 2012 20:38:16 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)


(From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670478 )

cp/parent-perm-race tries to copy a fifo with the --copy-contents
option.  The problem is that cp still uses O_NOFOLLOW in that case,
strace shows:

open("mode/fifo", O_RDONLY|O_NOFOLLOW)

O_NOFOLLOW is actually normally meant for security, to avoid attacks
through symlink redirection.  In that case, the Hurd thus disables
translators too, to avoid any rogue translator that would achieve the
same kind attack as symlink redirection.  But then --copy-contents can
not work, since the fifo thus can not work (it's a translator that
implements it).  I don't think either the Hurd or coreutils will want to
change their behavior, so could the test be disabled on GNU/Hurd?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]