From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: [PATCH 1/7] audit: implement generic feature setting and retrieving Date: Tue, 09 Jul 2013 18:08:08 -0400 Message-ID: <1579008.hh9fcgUfJ7@x2> References: <1369411910-13777-1-git-send-email-eparis@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369411910-13777-1-git-send-email-eparis@redhat.com> 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 On Friday, May 24, 2013 12:11:44 PM Eric Paris wrote: > +static void audit_log_feature_change(int which, u32 old_feature, u32 > new_feature, + u32 old_lock, u32 new_lock, int res) > +{ > + struct audit_buffer *ab; > + > + ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE); > + audit_log_format(ab, "feature=%s new=%d old=%d old_lock=%d new_lock=%d > res=%d", + audit_feature_names[which], !!old_feature, !!new_feature, > + !!old_lock, !!new_lock, res); > + audit_log_end(ab); > +} Shouldn't we be recording all the subjecting information? The above would be the object and results. But we need the "who" part. -Steve