Bugzilla – Attachment 3660 Details for
Bug 3537
OpenSSH build failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Check if each arg to madvise is defined before attempting to use them
openssh-madvise.patch (text/plain), 763 bytes, created by
Darren Tucker
on 2023-02-09 23:50:26 AEDT
(
hide
)
Description:
Check if each arg to madvise is defined before attempting to use them
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2023-02-09 23:50:26 AEDT
Size:
763 bytes
patch
obsolete
>diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c >index 78c26623..140360cc 100644 >--- a/sandbox-seccomp-filter.c >+++ b/sandbox-seccomp-filter.c >@@ -308,11 +308,21 @@ static const struct sock_filter preauth_insns[] = { > #endif > #ifdef __NR_madvise > SC_ALLOW_ARG(__NR_madvise, 2, MADV_NORMAL), >+# ifdef MADV_FREE > SC_ALLOW_ARG(__NR_madvise, 2, MADV_FREE), >+# endif >+# ifdef MADV_DONTNEED > SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTNEED), >+# endif >+# ifdef MADV_DONTFORK > SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTFORK), >+# endif >+# ifdef MADV_DONTDUMP > SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTDUMP), >+# endif >+# ifdef MADV_WIPEONFORK > SC_ALLOW_ARG(__NR_madvise, 2, MADV_WIPEONFORK), >+# endif > SC_DENY(__NR_madvise, EINVAL), > #endif > #ifdef __NR_mmap
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 3537
:
3659
| 3660 |
3661
|
3662
|
3668