Page MenuHomeFreeBSD

D26814.id.diff
No OneTemporary

D26814.id.diff

Index: head/sys/compat/linux/linux_mib.h
===================================================================
--- head/sys/compat/linux/linux_mib.h
+++ head/sys/compat/linux/linux_mib.h
@@ -65,6 +65,7 @@
extern int linux_debug;
extern int linux_default_openfiles;
extern int linux_default_stacksize;
+extern int linux_dummy_rlimits;
extern int linux_ignore_ip_recverr;
extern int linux_preserve_vstatus;
extern bool linux_map_sched_prio;
Index: head/sys/compat/linux/linux_mib.c
===================================================================
--- head/sys/compat/linux/linux_mib.c
+++ head/sys/compat/linux/linux_mib.c
@@ -77,6 +77,11 @@
&linux_default_stacksize, 0,
"Default soft stack size resource limit, or -1 for unlimited");
+int linux_dummy_rlimits = 0;
+SYSCTL_INT(_compat_linux, OID_AUTO, dummy_rlimits, CTLFLAG_RWTUN,
+ &linux_dummy_rlimits, 0,
+ "Return dummy values for unsupported Linux-specific rlimits");
+
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");
Index: head/sys/compat/linux/linux_misc.c
===================================================================
--- head/sys/compat/linux/linux_misc.c
+++ head/sys/compat/linux/linux_misc.c
@@ -1377,6 +1377,9 @@
linux_get_dummy_limit(l_uint resource, struct rlimit *rlim)
{
+ if (linux_dummy_rlimits == 0)
+ return (false);
+
switch (resource) {
case LINUX_RLIMIT_LOCKS:
case LINUX_RLIMIT_SIGPENDING:

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 29, 7:08 AM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26321421
Default Alt Text
D26814.id.diff (1 KB)

Event Timeline