[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1379688470.5434.4.camel@flatline.rdu.redhat.com>
Date: Fri, 20 Sep 2013 10:47:50 -0400
From: Eric Paris <eparis@...hat.com>
To: Steve Grubb <sgrubb@...hat.com>
Cc: Richard Guy Briggs <rgb@...hat.com>, linux-audit@...hat.com,
linux-kernel@...r.kernel.org,
Konstantin Khlebnikov <khlebnikov@...nvz.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Dan Duval <dan.duval@...cle.com>,
Chuck Anderson <chuck.anderson@...cle.com>,
Guy Streeter <streeter@...hat.com>,
Oleg Nesterov <oleg@...hat.com>
Subject: Re: [PATCH 7/8] audit: clean up AUDIT_GET/SET local variables and
future-proof API
On Thu, 2013-09-19 at 17:18 -0400, Steve Grubb wrote:
> On Wednesday, September 18, 2013 03:06:52 PM Richard Guy Briggs wrote:
> > Re-named confusing local variable names (status_set and status_get didn't
> > agree with their command type name) and reduced their scope.
> >
> > Future-proof API changes by not depending on the exact size of the
> > audit_status struct.
>
> I wished things like this were coordinated before being written. We had some
> discussion of this back in July under a topic, "audit: implement generic
> feature setting and retrieving". Maybe that API can be fixed so its not just
> set/unset but can take a number as well.
Your right, we did talk about it. Though it seems we talked past each
other. What was implemented was an on off extensible interface. The
status interface already fits for setting numbers. And because of how
it is used has been extended is is extensible for setting numbers.
>
> Also, because there is no way to query the kernel to see what kind of things
> it supports
I'll agree. Richard, can you please add a version field to the status?
Start at version 1. Any time we add a new audit feature we'll bump it.
> , we've typically defined a new message type and put into it exactly
> what we need. In other words, if you want something expandable, the define a
> new message type like AUDIT_GET_EXT and AUDIT_SET_EXT and build it to be
> expandable.
There is no reason we can't use what we have. (As we've done it before)
--
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