Page MenuHomeFreeBSD

D30378.id.diff
No OneTemporary

D30378.id.diff

diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -1650,6 +1650,17 @@
return (0);
}
+/*
+ * Filler function for proc/sys/kernel/core_pattern
+ */
+static int
+linprocfs_docore_pattern(PFS_FILL_ARGS)
+{
+
+ sbuf_printf(sb, "core\n");
+ return (0);
+}
+
/*
* Filler function for proc/sys/vm/min_free_kbytes
*
@@ -2069,6 +2080,8 @@
NULL, NULL, NULL, PFS_RD);
pfs_create_file(dir, "tainted", &linprocfs_dotainted,
NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(dir, "core_pattern", &linprocfs_docore_pattern,
+ NULL, NULL, NULL, PFS_RD);
/* /proc/sys/kernel/random/... */
dir = pfs_create_dir(dir, "random", NULL, NULL, NULL, 0);

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 15, 4:22 PM (16 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27653133
Default Alt Text
D30378.id.diff (771 B)

Event Timeline