[PATCH] sched: change sched_debug's mode to 0444 - Kernel

This is a discussion on [PATCH] sched: change sched_debug's mode to 0444 - Kernel ; /proc/sched_debug is read-only. Signed-off-by: Li Zefan --- kernel/sched_debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c index ad958c1..5ae1776 100644 --- a/kernel/sched_debug.c +++ b/kernel/sched_debug.c @@ -319,7 +319,7 @@ static int __init init_sched_debug_procfs(void) { struct proc_dir_entry ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] sched: change sched_debug's mode to 0444

  1. [PATCH] sched: change sched_debug's mode to 0444

    /proc/sched_debug is read-only.

    Signed-off-by: Li Zefan
    ---
    kernel/sched_debug.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
    index ad958c1..5ae1776 100644
    --- a/kernel/sched_debug.c
    +++ b/kernel/sched_debug.c
    @@ -319,7 +319,7 @@ static int __init init_sched_debug_procfs(void)
    {
    struct proc_dir_entry *pe;

    - pe = proc_create("sched_debug", 0644, NULL, &sched_debug_fops);
    + pe = proc_create("sched_debug", 0444, NULL, &sched_debug_fops);
    if (!pe)
    return -ENOMEM;
    return 0;
    --
    1.5.4.rc3

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] sched: change sched_debug's mode to 0444


    * Li Zefan wrote:

    > /proc/sched_debug is read-only.
    >
    > Signed-off-by: Li Zefan
    > ---
    > kernel/sched_debug.c | 2 +-
    > 1 files changed, 1 insertions(+), 1 deletions(-)


    applied to tip/sched/urgent, thanks!

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread