lkml.org 
[lkml]   [2010]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] trivial: make mmap_min_addr perms 600
    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

    \
     
     \ /
      Last update: 2010-04-21 16:03    [W:2.807 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site