From: Richard Guy Briggs Subject: Re: [PATCH 0/5] Add support for sessionid user filters, sessionid_set and loginuid_set Date: Tue, 2 Aug 2016 12:30:34 -0400 Message-ID: <20160802163034.GY10734@madcap2.tricolour.ca> References: <1470130741-31650-1-git-send-email-rgb@redhat.com> <20160802125635.GX10734@madcap2.tricolour.ca> <1631071.bJV1sPFgiU@x2> <7465676.juF99Vr4t2@x2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <7465676.juF99Vr4t2@x2> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On 2016-08-02 09:58, Steve Grubb wrote: > On Tuesday, August 2, 2016 9:25:44 AM EDT Steve Grubb wrote: > > On Tuesday, August 2, 2016 8:56:35 AM EDT Richard Guy Briggs wrote: > > > On 2016-08-02 08:16, Steve Grubb wrote: > > > > On Tuesday, August 2, 2016 5:38:56 AM EDT Richard Guy Briggs wrote: > > > > > Add support for sessionid, sessionid_set (first two patches) and > > > > > loginuid_set (and auid_set) (third patch) in user filters. The first > > > > > > > > > > two are directly related to issue "ghak4": > > > > > https://github.com/linux-audit/audit-kernel/issues/4 > > > > > https://github.com/linux-audit/audit-kernel/wiki/RFE-Session-ID-> > > > > > > > User-Filter > > > > > > > > > > The third is to support a kernel change from 3.10 and 3.19 to avoid > > > > > using in-band values to indicate the loginuid is unset. > > > > > > > > Have the above three patches been tested on old kernels? > > > > > > Not yet. How do you usually add new features to userspace to guard > > > against missing features from old kernels? Time to add a bit to the > > > kenrel audit status feature field? > > > > Yes. Otherwise you get EINVAL which doesn't let you explain what exactly is > > wrong with the rule. > > Before you get too far...I just looked at the support being added in the first > three patches. There is no code changing auditctl. Is there something missing? I am pretty sure I looked through auditctl and in the three cases things were simple enough that the fallthrough case was sufficient. Now that I think about it, to avoid the ambiguity of -EINVAL, restricting the first to a positive value and the 2nd and 3rd to true or false would remove that ambiguity. > -Steve - RGB -- Richard Guy Briggs Kernel Security Engineering, Base Operating Systems, Red Hat Remote, Ottawa, Canada Voice: +1.647.777.2635, Internal: (81) 32635