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