mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] trivial: make mmap_min_addr perms 600
@ 2010-04-21 14:00 Kyle McMartin
  2010-04-21 14:04 ` Eric Paris
  2010-04-21 18:29 ` Kees Cook
  0 siblings, 2 replies; 4+ messages in thread
From: Kyle McMartin @ 2010-04-21 14:00 UTC (permalink / raw)
  To: eparis; +Cc: kees, cebbert, linux-kernel

Chuck points out that mmap_min_addr is 644...

CAP_SYS_RAWIO will deny users read/write to the file, let's let them see
that this is intended.

Signed-off-by: Kyle McMartin <kyle@redhat.com>
---
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8686b0f..5868481 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1209,7 +1209,7 @@ static struct ctl_table vm_table[] = {
 		.procname	= "mmap_min_addr",
 		.data		= &dac_mmap_min_addr,
 		.maxlen		= sizeof(unsigned long),
-		.mode		= 0644,
+		.mode		= 0600,
 		.proc_handler	= mmap_min_addr_handler,
 	},
 #endif

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-22 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21 14:00 [PATCH] trivial: make mmap_min_addr perms 600 Kyle McMartin
2010-04-21 14:04 ` Eric Paris
2010-04-21 18:29 ` Kees Cook
2010-04-22 15:20   ` Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®