Thread (20 messages) flat view 20 messages, 5 authors, 2022-04-13

Re: [PATCH] bpf: move the bpf syscall sysctl table to its own module

From: Matthew Wilcox <willy@infradead.org>
Date: 2022-02-23 04:29:02
Also in: bpf, linux-fsdevel, lkml

On Wed, Feb 23, 2022 at 09:35:29AM +0800, Yan Zhu wrote:
+static struct ctl_table bpf_syscall_table[] = {
+	{
+		.procname	= "unprivileged_bpf_disabled",
+		.data		= &sysctl_unprivileged_bpf_disabled,
+		.maxlen		= sizeof(sysctl_unprivileged_bpf_disabled),
+		.mode		= 0644,
+		.proc_handler	= bpf_unpriv_handler,
+		.extra1		= SYSCTL_ZERO,
+		.extra2		= SYSCTL_TWO,
+	},
+	{
+		.procname	= "bpf_stats_enabled",
+		.data		= &bpf_stats_enabled_key.key,
+		.maxlen		= sizeof(bpf_stats_enabled_key),
+		.mode		= 0644,
+		.proc_handler	= bpf_stats_handler,
+	},
+	{ }
+};
No progress towards a counted array instead of a NULL terminated one?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help