lkml.org 
[lkml]   [2009]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] integrity: ima mq_open imbalance msg fix
    Date
    This patch fixes an imbalance message as reported by Sanchin Sant.
    As we don't need to measure the message queue, just increment the
    counters.

    Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
    ---
    ipc/mqueue.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/ipc/mqueue.c b/ipc/mqueue.c
    index e35ba2c..c5e68ad 100644
    --- a/ipc/mqueue.c
    +++ b/ipc/mqueue.c
    @@ -32,6 +32,7 @@
    #include <linux/nsproxy.h>
    #include <linux/pid.h>
    #include <linux/ipc_namespace.h>
    +#include <linux/ima.h>

    #include <net/sock.h>
    #include "util.h"
    @@ -733,6 +734,7 @@ SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, mode_t, mode,
    error = PTR_ERR(filp);
    goto out_putfd;
    }
    + ima_counts_get(filp);

    fd_install(fd, filp);
    goto out_upsem;
    --
    1.6.0.6


    \
     
     \ /
      Last update: 2009-06-26 17:27    [W:0.022 / U:35.612 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site