[openssh-commits] [openssh] 01/04: allow madvise(..., MADV_DONTNEED_LOCKED)
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat Oct 3 19:06:10 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch V_10_5
in repository openssh.
commit 7cf295b2f54fc1a2d81189eadc4c600cdea5f1f4
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Tue Sep 15 15:37:02 2026 +1000
allow madvise(..., MADV_DONTNEED_LOCKED)
allow MADV_DONTNEED_LOCKED in the seccomp sandbox; needed by GrapheneOS'
hardened allocator. bz4001
---
sandbox-seccomp-filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index bf753eef2..b49d0286e 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -346,6 +346,9 @@ static const struct sock_filter preauth_insns[] = {
# ifdef MADV_DONTNEED
SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTNEED),
# endif
+# ifdef MADV_DONTNEED_LOCKED
+ SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTNEED_LOCKED),
+# endif
# ifdef MADV_DONTFORK
SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTFORK),
# endif
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list