Re: openat, mkdirat, and TOCTOU for directory creation

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

 



On Sat Feb 27, 2021 at 12:58 PM EST, Aleksa Sarai wrote:
> Maybe a mkdirat2(2) (which takes a flags argument -- sigh) that can be
> told to return a handle to the new directory would be a nicer API.

That seems appropriate. Hear hear on the sigh.

> Changing the semantics of open scares me a fair bit -- you could
> probably change openat2(2) since it's not as widely used yet.

Seems agreeable, at least for a start.




[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