Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 282a821f authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds
Browse files

sysctl: x86_64 remove unnecessary binary paths



Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent baa3a2a0
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -289,7 +289,6 @@ static void elf32_init(struct pt_regs *regs)


static ctl_table abi_table2[] = {
static ctl_table abi_table2[] = {
	{
	{
		.ctl_name	= 99,
		.procname	= "vsyscall32",
		.procname	= "vsyscall32",
		.data		= &sysctl_vsyscall32,
		.data		= &sysctl_vsyscall32,
		.maxlen		= sizeof(int),
		.maxlen		= sizeof(int),
+1 −9
Original line number Original line Diff line number Diff line
@@ -266,18 +266,10 @@ static int vsyscall_sysctl_change(ctl_table *ctl, int write, struct file * filp,
	return ret;
	return ret;
}
}


static int vsyscall_sysctl_nostrat(ctl_table *t, int __user *name, int nlen,
				void __user *oldval, size_t __user *oldlenp,
				void __user *newval, size_t newlen)
{
	return -ENOSYS;
}

static ctl_table kernel_table2[] = {
static ctl_table kernel_table2[] = {
	{ .ctl_name = 99, .procname = "vsyscall64",
	{ .procname = "vsyscall64",
	  .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int),
	  .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int),
	  .mode = 0644,
	  .mode = 0644,
	  .strategy = vsyscall_sysctl_nostrat,
	  .proc_handler = vsyscall_sysctl_change },
	  .proc_handler = vsyscall_sysctl_change },
	{}
	{}
};
};