Page MenuHomeFreeBSD

D26898.diff
No OneTemporary

D26898.diff

Index: head/sys/compat/linprocfs/linprocfs.c
===================================================================
--- head/sys/compat/linprocfs/linprocfs.c
+++ head/sys/compat/linprocfs/linprocfs.c
@@ -1453,6 +1453,19 @@
}
/*
+ * Filler function for proc/sys/kernel/ngroups_max
+ *
+ * Note that in Linux it defaults to 65536, not 1023.
+ */
+static int
+linprocfs_dongroups_max(PFS_FILL_ARGS)
+{
+
+ sbuf_printf(sb, "%d\n", ngroups_max);
+ return (0);
+}
+
+/*
* Filler function for proc/sys/kernel/pid_max
*/
static int
@@ -1921,6 +1934,8 @@
pfs_create_file(dir, "msgmni", &linprocfs_domsgmni,
NULL, NULL, NULL, PFS_RD);
pfs_create_file(dir, "msgmnb", &linprocfs_domsgmnb,
+ NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(dir, "ngroups_max", &linprocfs_dongroups_max,
NULL, NULL, NULL, PFS_RD);
pfs_create_file(dir, "pid_max", &linprocfs_dopid_max,
NULL, NULL, NULL, PFS_RD);

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 27, 4:01 AM (13 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39714469
Default Alt Text
D26898.diff (912 B)

Event Timeline