diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-06-21 12:17:39 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2026-06-21 12:19:14 +0000 |
| commit | f6b3bd1f3384d262b893af123f3fc2df21c5b9ee (patch) | |
| tree | dd9bcfaaddc0e0e305404c40bca7e8c67b24a2d2 | |
| parent | c7e5802ab6e6230a5782a09c914585d055eb5223 (diff) | |
sound tests: Remove trailing PROT_EXEC
Fixes: 730eaf466493 ("sound tests: Add PROT_EXEC rejection test")
Reported by: Oliver Pinter <oliver.pntr@gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 6 days
| -rw-r--r-- | tests/sys/sound/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/sound/mmap.c b/tests/sys/sound/mmap.c index e83193db9bc1..6ebfd2f7dec5 100644 --- a/tests/sys/sound/mmap.c +++ b/tests/sys/sound/mmap.c @@ -120,7 +120,7 @@ ATF_TC_BODY(mmap_reject_prot_exec, tc) len = 8; - buf = mmap(NULL, len, PROT_READ | PROT_EXEC | PROT_EXEC, MAP_SHARED, + buf = mmap(NULL, len, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_SHARED, fd, 0); ATF_REQUIRE_MSG(buf == MAP_FAILED, FMT_ERR("mmap")); |
