Bugzilla – Attachment 3662 Details for
Bug 3537
OpenSSH build failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
compatibility for mmap flags
bz3537.diff (text/plain), 846 bytes, created by
Damien Miller
on 2023-02-10 10:35:37 AEDT
(
hide
)
Description:
compatibility for mmap flags
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2023-02-10 10:35:37 AEDT
Size:
846 bytes
patch
obsolete
>diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c >index 78c266231..22bb114ad 100644 >--- a/sandbox-seccomp-filter.c >+++ b/sandbox-seccomp-filter.c >@@ -189,10 +189,14 @@ > #endif /* __NR_futex || __NR_futex_time64 */ > > #if defined(__NR_mmap) || defined(__NR_mmap2) >+# ifdef MAP_FIXED_NOREPLACE >+# define SC_MMAP_FLAGS MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED|MAP_FIXED_NOREPLACE >+# else >+# define SC_MMAP_FLAGS MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED >+# endif /* MAP_FIXED_NOREPLACE */ > /* Use this for both __NR_mmap and __NR_mmap2 variants */ > # define SC_MMAP(_nr) \ >- SC_DENY_UNLESS_ARG_MASK(_nr, 3, \ >- MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED|MAP_FIXED_NOREPLACE, EINVAL), \ >+ SC_DENY_UNLESS_ARG_MASK(_nr, 3, SC_MMAP_FLAGS, EINVAL), \ > SC_ALLOW_ARG_MASK(_nr, 2, PROT_READ|PROT_WRITE|PROT_NONE) > #endif /* __NR_mmap || __NR_mmap2 */ >
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?
(
dtucker
)
Actions:
View
|
Diff
Attachments on
bug 3537
:
3659
|
3660
|
3661
| 3662 |
3668