Page MenuHomeFreeBSD

D25556.id74056.diff
No OneTemporary

D25556.id74056.diff

Index: sys/compat/linprocfs/linprocfs.c
===================================================================
--- sys/compat/linprocfs/linprocfs.c
+++ sys/compat/linprocfs/linprocfs.c
@@ -1414,6 +1414,18 @@
}
/*
+ * Filler function for proc/sys/kernel/tainted
+ * XXX: connect02, sendmsg03
+ */
+static int
+linprocfs_dotainted(PFS_FILL_ARGS)
+{
+
+ sbuf_printf(sb, "0\n");
+ return (0);
+}
+
+/*
* Filler function for proc/sys/vm/min_free_kbytes
*
* This mirrors the approach in illumos to return zero for reads. Effectively,
@@ -1809,6 +1821,8 @@
pfs_create_file(dir, "pid_max", &linprocfs_dopid_max,
NULL, NULL, NULL, PFS_RD);
pfs_create_file(dir, "sem", &linprocfs_dosem,
+ NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(dir, "tainted", &linprocfs_dotainted,
NULL, NULL, NULL, PFS_RD);
/* /proc/sys/kernel/random/... */

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 1:20 PM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14762037
Default Alt Text
D25556.id74056.diff (854 B)

Event Timeline