Re: [PATCH 7/15] sanitize AUDIT_MQ_SENDRECV

From: James Morris
Date: Wed Dec 17 2008 - 02:42:37 EST


On Wed, 17 Dec 2008, Al Viro wrote:

>
> * logging the original value of *msg_prio in mq_timedreceive(2)
> is insane - the argument is write-only (i.e. syscall always
> ignores the original value and only overwrites it).

I wonder if any existing certifications need to be amended.

> * merge __audit_mq_timed{send,receive}
> * don't do copy_from_user() twice
> * don't mess with allocations in auditsc part
> * ... and don't bother checking !audit_enabled and !context in there -
> we'd already checked for audit_dummy_context().
>
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>


Reviewed-by: James Morris <jmorris@xxxxxxxxx>

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