Page MenuHomeFreeBSD

D25556.diff
No OneTemporary

D25556.diff

Index: head/sys/compat/linprocfs/linprocfs.c
===================================================================
--- head/sys/compat/linprocfs/linprocfs.c
+++ head/sys/compat/linprocfs/linprocfs.c
@@ -1414,6 +1414,17 @@
}
/*
+ * Filler function for proc/sys/kernel/tainted
+ */
+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,
@@ -1814,6 +1825,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, 11:15 AM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14760441
Default Alt Text
D25556.diff (839 B)

Event Timeline