lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090626152827.GA23046@us.ibm.com>
Date:	Fri, 26 Jun 2009 10:28:27 -0500
From:	"Serge E. Hallyn" <serue@...ibm.com>
To:	Mimi Zohar <zohar@...ux.vnet.ibm.com>
Cc:	linux-kernel@...r.kernel.org, Sanchin Sant <sanchinp@...ibm.com>,
	Serge Hallyn <serue@...ux.vnet.ibm.com>,
	James Morris <jmorris@...ei.org>,
	David Safford <safford@...son.ibm.com>,
	Mimi Zohar <zohar@...ibm.com>
Subject: Re: [PATCH] integrity: ima mq_open imbalance msg fix

Quoting Mimi Zohar (zohar@...ux.vnet.ibm.com):
> 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@...ibm.com>

Acked-by: Serge Hallyn <serue@...ibm.com>

Thanks, Mimi and Sanchin.

-serge

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ