Skip to content

Commit 5af47b6

Browse files
committed
Add upgrade mask for openat2() to in-progress
1 parent e7119e1 commit 5af47b6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ directories, device nodes, fifos, and wants to ensure that they
233233
safely get the right attributes applied, even if other code might
234234
simultaneously have access to the same directory tree.
235235

236+
### Upgrade masks in `openat2()`
237+
238+
Add upgrade masks to `openat2()`. Extend `struct open_how` to allow
239+
restrict re-opening of file descriptors.
240+
241+
**Use-Case:** block services or containers from re-opening/upgrading an
242+
`O_PATH` file descriptor through e.g. `/proc/<pid>/fd/<nr` as `O_WRONLY`.
243+
236244
---
237245

238246
### TODO
@@ -508,14 +516,6 @@ whose attributes cannot be changed by the caller don't want
508516
`mount_settattr()` to fail on the first mount it failed to convert. Give
509517
them a flag to request changes ignoring failures.
510518

511-
### Upgrade masks in `openat2()`
512-
513-
Add upgrade masks to `openat2()`. Extend `struct open_how` to allow
514-
restrict re-opening of file descriptors.
515-
516-
**Use-Case:** block services or containers from re-opening/upgrading an
517-
`O_PATH` file descriptor through e.g. `/proc/<pid>/fd/<nr` as `O_WRONLY`.
518-
519519
### Make quotas work with user namespaces
520520

521521
The quota codepaths in the kernel currently broken and inconsistent

0 commit comments

Comments
 (0)