Thread (17 messages) flat view 17 messages, 8 authors, 2021-03-08

Re: [RFC PATCH] fs: introduce mkdirat2 syscall for atomic mkdir

From: Drew DeVault <hidden>
Date: 2021-02-28 02:27:21
Also in: linux-api

On Sat Feb 27, 2021 at 9:24 PM EST, Matthew Wilcox wrote:
Where's the problem? If mkdir succeeds in a sticky directory, others
can't remove or rename it. So how can an app be tricked into doing
something wrong?
It's not a security concern, it's just about about making the software
more robust.

1. Program A creates a directory
2. Program A is pre-empted
3. Program B deletes the directory
4. Program A creates a file in that directory
5. RIP
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help