lkml.org 
[lkml]   [2012]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] pstore/ram: Should zap persistent zone on unlink
    Date
    Otherwise, unlinked file will reappear on the next boot.

    Reported-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
    Acked-by: Kees Cook <keescook@chromium.org>
    ---
    fs/pstore/ram.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
    index 16ff733..453030f 100644
    --- a/fs/pstore/ram.c
    +++ b/fs/pstore/ram.c
    @@ -186,6 +186,7 @@ static int ramoops_pstore_erase(enum pstore_type_id type, u64 id,
    return -EINVAL;

    persistent_ram_free_old(cxt->przs[id]);
    + persistent_ram_zap(cxt->przs[id]);

    return 0;
    }
    --
    1.7.9.2


    \
     
     \ /
      Last update: 2012-05-26 15:41    [W:0.021 / U:88.312 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site