linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Drew DeVault" <sir@cmpwn.com>
To: "Aleksa Sarai" <cyphar@cyphar.com>
Cc: <linux-fsdevel@vger.kernel.org>
Subject: Re: openat, mkdirat, and TOCTOU for directory creation
Date: Sat, 27 Feb 2021 15:03:54 -0500	[thread overview]
Message-ID: <C9KKYZ4T5O53.338Y48UIQ9W3H@taiga> (raw)
In-Reply-To: <20210227175833.qgj4qrzz7aqe4zah@yavin.dot.cyphar.com>

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.

      reply	other threads:[~2021-02-27 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-27 14:27 openat, mkdirat, and TOCTOU for directory creation Drew DeVault
2021-02-27 17:58 ` Aleksa Sarai
2021-02-27 20:03   ` Drew DeVault [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C9KKYZ4T5O53.338Y48UIQ9W3H@taiga \
    --to=sir@cmpwn.com \
    --cc=cyphar@cyphar.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).