AW: O_CREAT|O_DIRECTORY on nonexisting file with ext4 not posix-compliant

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

 



> Von: NeilBrown [mailto:neilb@xxxxxxx]
>
> On Mon, 15 Dec 2014 17:39:09 +0000 Fiedler Roman
> <Roman.Fiedler@xxxxxxxxx>
> wrote:
>
> > Hi,
> >
> > It seems that the open syscall is not POSIX-compliant when using both
> > O_CREAT|O_DIRECTORY. This was discussed in [1] with a reference to the
> POSIX
> > documentation.
>
> Given that O_DIRECTORY is not part of POSIX, I don't think that
> POSIX-compliance is an issue here.

That's strange. Shouldn't [1] be the current 2013 standard with O_DIRECTORY 
for open on page 1380? If not, all clear. If yes, does Linux adhere to the 
older version, e.g. 2008 instead?

> However the implementation does seem to differ from the Linux
> documentation.
>
> I suggest you submit a patch to the manpages project to change
>
>   If  pathname  is  not a directory
>
> to
>
>   If  pathname exists and is  not a directory
>
> That should fix the problem.

When [1] is not the standard to be applied, we are done here. If yes, it could 
be decided if the clarifications from [2] (link included in discussion [3] 
from previous message) are already relevant.

> [Snip]


[1] http://cfajohnson.com/pdf/Portable_Operating_System_Interface-POSIX.pdf
[2] http://austingroupbugs.net/view.php?id=847
[3] http://www.openwall.com/lists/oss-security/2014/11/26/10

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux