git: 83c94a80bcae - main - syscalls.master: Add a capsicum note about sync(2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Nov 2026 19:49:12 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=83c94a80bcaee2a355ab55a9cadbd51aa2c19933
commit 83c94a80bcaee2a355ab55a9cadbd51aa2c19933
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-29 20:35:03 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-11-20 19:48:59 +0000
syscalls.master: Add a capsicum note about sync(2)
Allowing sync(2) is technically a violation of Capsicum's "no global
namespace access" requirement, but sync does not leak or modify user-
visible state.
Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61675
---
sys/kern/syscalls.master | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index d49e5843ac12..aca0d13f7bd8 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -336,6 +336,8 @@
u_long flags
);
}
+; sync is technically a violation of "no global namespace access" in capability
+; mode, but does not expose or modify user-visible state.
36 AUE_SYNC STD|CAPENABLED {
int sync(void);
}