[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1271858667.2899.10.camel@dhcp235-240.rdu.redhat.com>
Date: Wed, 21 Apr 2010 10:04:27 -0400
From: Eric Paris <eparis@...hat.com>
To: Kyle McMartin <kmcmartin@...hat.com>
Cc: kees@...onical.com, cebbert@...hat.com,
linux-kernel@...r.kernel.org, jmorris@...ei.org
Subject: Re: [PATCH] trivial: make mmap_min_addr perms 600
On Wed, 2010-04-21 at 10:00 -0400, Kyle McMartin wrote:
> 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@...hat.com>
I'm fine with it. RAWIO was only really added to block writes as I
recall, but I don't see a good reason normal users need to see this and
blocking them with rwx perms first is a good idea.
Acked-by: Eric Paris <eparis@...hat.com>
James, do you want to pick up and push towards linus?
-Eric
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists