Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163599602
D53315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
612 B
Referenced Files
None
Subscribers
None
D53315.diff
View Options
diff --git a/share/man/man4/rights.4 b/share/man/man4/rights.4
--- a/share/man/man4/rights.4
+++ b/share/man/man4/rights.4
@@ -281,7 +281,8 @@
and
.Xr openat 2
with
-.Dv O_FSYNC
+.Dv O_DSYNC ,
+.Dv O_FSYNC ,
or
.Dv O_SYNC
flag.
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1119,7 +1119,7 @@
if (flags & O_TRUNC)
cap_rights_set_one(rightsp, CAP_FTRUNCATE);
- if (flags & (O_SYNC | O_FSYNC))
+ if (flags & (O_SYNC | O_FSYNC | O_DSYNC))
cap_rights_set_one(rightsp, CAP_FSYNC);
if (flags & (O_EXLOCK | O_SHLOCK))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 25, 8:29 PM (10 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35489107
Default Alt Text
D53315.diff (612 B)
Attached To
Mode
D53315: vfs_syscalls.c::flags_to_right(): O_DSYNC should be allowed for CAP_FSYNC
Attached
Detach File
Event Timeline
Log In to Comment