From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amy Griffis Subject: [PATCH] log mq object label for mq_timedreceive/mq_timedsend Date: Tue, 23 Jan 2007 19:11:06 -0500 Message-ID: <20070124001106.GB22272@fc.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0O0BL9C010690 for ; Tue, 23 Jan 2007 19:11:21 -0500 Received: from atlrel8.hp.com (atlrel8.hp.com [156.153.255.206]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0O0BJMU011713 for ; Tue, 23 Jan 2007 19:11:19 -0500 Received: from smtp1.fc.hp.com (smtp1.fc.hp.com [15.15.136.127]) by atlrel8.hp.com (Postfix) with ESMTP id 7784134CA1 for ; Tue, 23 Jan 2007 19:11:18 -0500 (EST) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.11.146.30]) by smtp1.fc.hp.com (Postfix) with ESMTP id EA2A712D477 for ; Wed, 24 Jan 2007 00:11:13 +0000 (UTC) Received: from localhost (ldl.lart [127.0.0.1]) by ldl.fc.hp.com (Postfix) with ESMTP id B28F213415B for ; Tue, 23 Jan 2007 17:11:13 -0700 (MST) Received: from ldl.fc.hp.com ([127.0.0.1]) by localhost (ldl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26281-05 for ; Tue, 23 Jan 2007 17:11:09 -0700 (MST) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com Log the message queue's object label for mq_timedreceive() and mq_timedsend() syscalls. Untested patch against lspp.63 kernel. Signed-off-by: Amy Griffis --- diff -Nrup linux-2.6.18.x86_64/ipc/mqueue.c linux-2.6.18.x86_64-amg/ipc/mqueue.c --- linux-2.6.18.x86_64/ipc/mqueue.c 2007-01-23 18:25:25.000000000 -0500 +++ linux-2.6.18.x86_64-amg/ipc/mqueue.c 2007-01-23 18:31:23.000000000 -0500 @@ -839,6 +839,7 @@ asmlinkage long sys_mq_timedsend(mqd_t m if (unlikely(filp->f_op != &mqueue_file_operations)) goto out_fput; info = MQUEUE_I(inode); + audit_inode(NULL, inode); if (unlikely(!(filp->f_mode & FMODE_WRITE))) goto out_fput; @@ -922,6 +923,7 @@ asmlinkage ssize_t sys_mq_timedreceive(m if (unlikely(filp->f_op != &mqueue_file_operations)) goto out_fput; info = MQUEUE_I(inode); + audit_inode(NULL, inode); if (unlikely(!(filp->f_mode & FMODE_READ))) goto out_fput;