aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2022-01-17 08:44:58 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2022-02-14 19:35:25 +0000
commit37671ee46dbfba7ebb55eca096a5faabf2b43abd (patch)
tree3036881b63dd20aa3e0c77355e7aa99d88391f6a
parentf89309617e10cf9b460c76cbe724d82817573653 (diff)
linux: Make compat.linux.preserve_vstatus default to 1
From a user point of view, this makes ^T work out of the box. Reviewed By: debdrup (man page) Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D33842 (cherry picked from commit b896bdb86d832d07ae397b340a56beb1a14ff980)
-rw-r--r--share/man/man4/linux.42
-rw-r--r--sys/compat/linux/linux_mib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man4/linux.4 b/share/man/man4/linux.4
index 6054ae1aa455..ee2629092100 100644
--- a/share/man/man4/linux.4
+++ b/share/man/man4/linux.4
@@ -132,7 +132,7 @@ VSTATUS setting.
From a user perspective, this makes
.Va SIGINFO
work for Linux executables.
-Defaults to 0.
+Defaults to 1.
.It Va compat.linux.setid_allowed
Enable handling of set-user-ID and set-group-ID mode bits for the new
process image file when image is to be executed under Linux ABI.
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index 13beba323787..ed1bdc528278 100644
--- a/sys/compat/linux/linux_mib.c
+++ b/sys/compat/linux/linux_mib.c
@@ -86,7 +86,7 @@ int linux_ignore_ip_recverr = 1;
SYSCTL_INT(_compat_linux, OID_AUTO, ignore_ip_recverr, CTLFLAG_RWTUN,
&linux_ignore_ip_recverr, 0, "Ignore enabling IP_RECVERR");
-int linux_preserve_vstatus = 0;
+int linux_preserve_vstatus = 1;
SYSCTL_INT(_compat_linux, OID_AUTO, preserve_vstatus, CTLFLAG_RWTUN,
&linux_preserve_vstatus, 0, "Preserve VSTATUS termios(4) flag");