From: Paul Moore <pmoore@redhat.com>
To: Richard Guy Briggs <rgb@redhat.com>
Cc: linux-audit@redhat.com, ebiederm@xmission.com, eparis@parisplace.org
Subject: Re: [PATCH 1/2] audit: restore AUDIT_LOGINUID unset ABI
Date: Tue, 23 Dec 2014 16:26:50 -0500 [thread overview]
Message-ID: <1666274.HYbdZVvp2J@sifl> (raw)
In-Reply-To: <0ad534ae39833d9825cee056c6d01c3bd4ae28f8.1419357176.git.rgb@redhat.com>
On Tuesday, December 23, 2014 01:02:04 PM Richard Guy Briggs wrote:
> A regression was caused by commit 780a7654cee8:
> audit: Make testing for a valid loginuid explicit.
> (which in turn attempted to fix a regression caused by e1760bd)
>
> When audit_krule_to_data() fills in the rules to get a listing, there was a
> missing clause to convert back from AUDIT_LOGINUID_SET to AUDIT_LOGINUID.
>
> This broke userspace by not returning the same information that was sent and
> expected.
>
> The rule:
> auditctl -a exit,never -F auid=-1
> gives:
> auditctl -l
> LIST_RULES: exit,never f24=0 syscall=all
> when it should give:
> LIST_RULES: exit,never auid=-1 (0xffffffff) syscall=all
>
> Tag it so that it is reported the same way it was set. Create a new
> private flags audit_krule field (pflags) to store it that won't interact
> with the public one from the API.
>
> Cc: stable@vger.kernel.org # v3.10-rc1+
> Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
> ---
> include/linux/audit.h | 4 ++++
> kernel/auditfilter.c | 10 ++++++++++
> 2 files changed, 14 insertions(+), 0 deletions(-)
Applied, thanks.
--
paul moore
security @ redhat
next prev parent reply other threads:[~2014-12-23 21:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-23 18:02 [PATCH 1/2] audit: restore AUDIT_LOGINUID unset ABI Richard Guy Briggs
2014-12-23 18:20 ` [PATCH 2/2] audit: shrink audit_krule by using smaller bitfields Richard Guy Briggs
2014-12-23 18:33 ` Paris, Eric
2014-12-23 20:42 ` Richard Guy Briggs
2014-12-23 19:04 ` Steve Grubb
2014-12-23 20:43 ` Richard Guy Briggs
2014-12-23 21:29 ` Paul Moore
2014-12-23 21:26 ` Paul Moore [this message]
2014-12-23 21:41 ` [PATCH 1/2] audit: restore AUDIT_LOGINUID unset ABI Paris, Eric
2014-12-23 21:46 ` Paul Moore
2014-12-23 23:02 ` Richard Guy Briggs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1666274.HYbdZVvp2J@sifl \
--to=pmoore@redhat.com \
--cc=ebiederm@xmission.com \
--cc=eparis@parisplace.org \
--cc=linux-audit@redhat.com \
--cc=rgb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox