Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103070600
D25556.id74056.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D25556.id74056.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25556: Add /proc/sys/kernel/tainted to linprocfs
Attached
Detach File
Event Timeline
Log In to Comment