sound: Force-disable hw.snd.compat_linux_mmap by default

Eventually this hack will be removed, so start by disabling it by
default.

Sponsored by:	The FreeBSD Foundation
MFC after:	12 months
Reviewed by:	emaste
Pull Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/29
This commit is contained in:
Christos Margiolis
2026-05-15 16:47:10 +02:00
parent b9c10eeb38
commit 9354e204f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ call, which
.Fx .Fx
does not. does not.
.Pp .Pp
The following values are supported (default is 0): The following values are supported (default is -1):
.Bl -tag -width 2n .Bl -tag -width 2n
.It -1 .It -1
Force-disable PROT_EXEC Force-disable PROT_EXEC
+1 -1
View File
@@ -55,7 +55,7 @@ struct dsp_cdevpriv {
}; };
#ifdef SV_ABI_LINUX #ifdef SV_ABI_LINUX
static int dsp_mmap_allow_prot_exec = 0; static int dsp_mmap_allow_prot_exec = -1;
SYSCTL_INT(_hw_snd, OID_AUTO, compat_linux_mmap, CTLFLAG_RWTUN, SYSCTL_INT(_hw_snd, OID_AUTO, compat_linux_mmap, CTLFLAG_RWTUN,
&dsp_mmap_allow_prot_exec, 0, &dsp_mmap_allow_prot_exec, 0,
"linux mmap compatibility (-1=force-disable 0=auto)"); "linux mmap compatibility (-1=force-disable 0=auto)");