lkml.org 
[lkml]   [2011]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[09/70] UBIFS: restrict world-writable debugfs files
    2.6.38-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Vasiliy Kulikov <segoon@openwall.com>

    commit 8c559d30b4e59cf6994215ada1fe744928f494bf upstream.

    Don't allow everybody to dump sensitive information about filesystems.

    Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    fs/ubifs/debug.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    --- a/fs/ubifs/debug.c
    +++ b/fs/ubifs/debug.c
    @@ -2844,19 +2844,19 @@ int dbg_debugfs_init_fs(struct ubifs_inf
    }

    fname = "dump_lprops";
    - dent = debugfs_create_file(fname, S_IWUGO, d->dfs_dir, c, &dfs_fops);
    + dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops);
    if (IS_ERR(dent))
    goto out_remove;
    d->dfs_dump_lprops = dent;

    fname = "dump_budg";
    - dent = debugfs_create_file(fname, S_IWUGO, d->dfs_dir, c, &dfs_fops);
    + dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops);
    if (IS_ERR(dent))
    goto out_remove;
    d->dfs_dump_budg = dent;

    fname = "dump_tnc";
    - dent = debugfs_create_file(fname, S_IWUGO, d->dfs_dir, c, &dfs_fops);
    + dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops);
    if (IS_ERR(dent))
    goto out_remove;
    d->dfs_dump_tnc = dent;



    \
     
     \ /
      Last update: 2011-04-19 22:19    [W:0.022 / U:0.192 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site