[PATCH ghak81 V3 1/3] audit: use new audit_context access funciton for seccomp_actions_logged

2018-05-16 Thread Richard Guy Briggs
On the rebase of the following commit on the new seccomp actions_logged function, one audit_context access was missed. commit cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5 ("audit: use inline function to get audit context") Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- kern

[PATCH ghak81 V3 2/3] audit: normalize loginuid read access

2018-05-16 Thread Richard Guy Briggs
Recognizing that the loginuid is an internal audit value, use an access function to retrieve the audit loginuid value for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- kernel/auditsc.

[PATCH ghak81 V3 0/3] audit: group task params

2018-05-16 Thread Richard Guy Briggs
- p2/5: add audit header to init/init_task.c to quiet kbuildbot - audit_signal_info(): fetch loginuid once - remove task_struct from audit_context() param list - remove extra task_struct local vars - do nothing on request to set audit context when audit is disabled Richard Guy Briggs (3): audit

Re: [PATCH ghak81 RFC V2 3/5] audit: use inline function to get audit context

2018-05-14 Thread Richard Guy Briggs
On 2018-05-14 23:05, Richard Guy Briggs wrote: > On 2018-05-14 17:44, Paul Moore wrote: > > On Sat, May 12, 2018 at 9:58 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > > Recognizing that the audit context is an internal audit value, use an > > > access funct

Re: [PATCH ghak81 RFC V2 3/5] audit: use inline function to get audit context

2018-05-14 Thread Richard Guy Briggs
On 2018-05-14 17:44, Paul Moore wrote: > On Sat, May 12, 2018 at 9:58 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > Recognizing that the audit context is an internal audit value, use an > > access function to retrieve the audit context pointer for the task > > ra

[PATCH ghak81 RFC V2 1/5] audit: normalize loginuid read access

2018-05-12 Thread Richard Guy Briggs
Recognizing that the loginuid is an internal audit value, use an access function to retrieve the audit loginuid value for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- kernel/auditsc.c | 18 +--

[PATCH ghak81 RFC V2 4/5] audit: use inline function to set audit context

2018-05-12 Thread Richard Guy Briggs
Recognizing that the audit context is an internal audit value, use an access function to set the audit context pointer for the task rather than reaching directly into the task struct to set it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h | 6 ++

[PATCH ghak81 RFC V2 2/5] audit: convert sessionid unset to a macro

2018-05-12 Thread Richard Guy Briggs
Use a macro, "AUDIT_SID_UNSET", to replace each instance of initialization and comparison to an audit session ID. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h | 2 +- include/net/xfrm.h | 2 +- include/uapi/linux/audit.h | 1 +

[PATCH ghak81 RFC V2 3/5] audit: use inline function to get audit context

2018-05-12 Thread Richard Guy Briggs
Recognizing that the audit context is an internal audit value, use an access function to retrieve the audit context pointer for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h

[PATCH ghak81 RFC V2 0/5] audit: group task params

2018-05-12 Thread Richard Guy Briggs
audit_context() param list - remove extra task_struct local vars - do nothing on request to set audit context when audit is disabled Richard Guy Briggs (5): audit: normalize loginuid read access audit: convert sessionid unset to a macro audit: use inline function to get audit context audit: use

[PATCH ghak81 RFC V2 5/5] audit: collect audit task parameters

2018-05-12 Thread Richard Guy Briggs
github.com/linux-audit/audit-kernel/issues/81 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- MAINTAINERS| 2 +- include/linux/audit.h | 10 +- include/linux/audit_task.h | 31 +++ include/linux/sched.h | 6 ++

Re: [PATCH ghak81 RFC V1 1/5] audit: normalize loginuid read access

2018-05-11 Thread Richard Guy Briggs
On 2018-05-10 17:21, Richard Guy Briggs wrote: > On 2018-05-09 11:13, Paul Moore wrote: > > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > > Recognizing that the loginuid is an internal audit value, use an access > > > function to

Re: [PATCH ghak81 RFC V1 5/5] audit: collect audit task parameters

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:46, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > The audit-related parameters in struct task_struct should ideally be > > collected together and accessed through a standard audit API. > > > &

Re: [PATCH ghak81 RFC V1 1/5] audit: normalize loginuid read access

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:13, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > Recognizing that the loginuid is an internal audit value, use an access > > function to retrieve the audit loginuid value for the task rather than

Re: [PATCH ghak81 RFC V1 3/5] audit: use inline function to get audit context

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:28, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > Recognizing that the audit context is an internal audit value, use an > > access function to retrieve the audit context pointer for the task > > ra

Re: [PATCH ghak81 RFC V1 4/5] audit: use inline function to set audit context

2018-05-09 Thread Richard Guy Briggs
On 2018-05-09 12:07, Tobin C. Harding wrote: > On Fri, May 04, 2018 at 04:54:37PM -0400, Richard Guy Briggs wrote: > > Recognizing that the audit context is an internal audit value, use an > > access function to set the audit context pointer for the task > > rather t

Re: [PATCH ghak81 RFC V1 2/5] audit: convert sessionid unset to a macro

2018-05-08 Thread Richard Guy Briggs
On 2018-05-04 16:54, Richard Guy Briggs wrote: > Use a macro, "AUDIT_SID_UNSET", to replace each instance of > initialization and comparison to an audit session ID. > > Signed-off-by: Richard Guy Briggs <r...@redhat.com> There's a minor issue with this patch, add

[PATCH ghak81 RFC V1 1/5] audit: normalize loginuid read access

2018-05-04 Thread Richard Guy Briggs
Recognizing that the loginuid is an internal audit value, use an access function to retrieve the audit loginuid value for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- kernel/auditsc.c | 16

[PATCH ghak81 RFC V1 2/5] audit: convert sessionid unset to a macro

2018-05-04 Thread Richard Guy Briggs
Use a macro, "AUDIT_SID_UNSET", to replace each instance of initialization and comparison to an audit session ID. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h | 2 +- include/net/xfrm.h | 2 +- include/uapi/linux/audit.h | 1 +

[PATCH ghak81 RFC V1 0/5] audit: group task params

2018-05-04 Thread Richard Guy Briggs
dynamic allocation would mostly hide any future changes. The first four access normalization patches could stand alone. Passes audit-testsuite. Richard Guy Briggs (5): audit: normalize loginuid read access audit: convert sessionid unset to a macro audit: use inline function to get audit

[PATCH ghak81 RFC V1 4/5] audit: use inline function to set audit context

2018-05-04 Thread Richard Guy Briggs
Recognizing that the audit context is an internal audit value, use an access function to set the audit context pointer for the task rather than reaching directly into the task struct to set it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h | 8

[PATCH ghak81 RFC V1 3/5] audit: use inline function to get audit context

2018-05-04 Thread Richard Guy Briggs
Recognizing that the audit context is an internal audit value, use an access function to retrieve the audit context pointer for the task rather than reaching directly into the task struct to get it. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h

[PATCH ghak81 RFC V1 5/5] audit: collect audit task parameters

2018-05-04 Thread Richard Guy Briggs
kmem_cache to manage this pool of memory. Un-inline audit_free() to be able to always recover that memory. See: https://github.com/linux-audit/audit-kernel/issues/81 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- MAINTAINERS| 2 +- include/linux/audit.h | 8 +

Re: [PATCH 1/6 RFC] netfilter: normalize x_table function declarations

2017-05-24 Thread Richard Guy Briggs
On 2017-05-24 19:37, Pablo Neira Ayuso wrote: > On Thu, May 18, 2017 at 01:21:47PM -0400, Richard Guy Briggs wrote: > > Git context diffs were being produced with unhelpful declaration types in > > the > > place of function names to help identify the funciton in which

Re: [PATCH 3/6 RFC] netfilter: audit only on xtables and ebtables syscall rule or standalone

2017-05-24 Thread Richard Guy Briggs
On 2017-05-24 19:36, Pablo Neira Ayuso wrote: > On Thu, May 18, 2017 at 01:21:49PM -0400, Richard Guy Briggs wrote: > > There were syscall events unsolicited by any audit rule caused by a missing > > !audit_dummy_context() check before creating an > > iptables/ip6tabl

Re: [PATCH 6/6 RFC] netfilter: add audit netns ID

2017-05-24 Thread Richard Guy Briggs
On 2017-05-24 19:31, Pablo Neira Ayuso wrote: > Cc'ing Eric Biederman. > > On Thu, May 18, 2017 at 01:21:52PM -0400, Richard Guy Briggs wrote: > > diff --git a/net/bridge/netfilter/ebtables.c > > b/net/bridge/netfilter/ebtables.c > > index 59b63a8..0f77b2a 100644 >

[PATCH 6/6 RFC] netfilter: add audit netns ID

2017-05-18 Thread Richard Guy Briggs
anied cases: type=UNKNOWN[1331] msg=audit(1494815998.178:167): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:iptables_t:s0 pid=598 comm="ip6tables-resto" exe="/usr/sbin/xtables-multi" op=replace net=121 family=10 table=filter entries=4 See: https://github.com

[PATCH 5/6 RFC] netfilter: add audit operation field

2017-05-18 Thread Richard Guy Briggs
(1494815998.178:167): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:iptables_t:s0 pid=598 comm="ip6tables-resto" exe="/usr/sbin/xtables-multi" op=replace family=10 table=filter entries=4 See: https://github.com/linux-audit/audit-kernel/issues/25 Signed

[PATCH 4/6 RFC] netfilter: ebtables: audit table registration

2017-05-18 Thread Richard Guy Briggs
(1494723394.832:111): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:iptables_t:s0 pid=556 comm="ebtables-restor" exe="/usr/sbin/ebtables-restore" family=7 table=broute entries=1 See: https://github.com/linux-audit/audit-kernel/issues/43 Signed-off-by: R

[PATCH 2/6 RFC] netfilter: normalize ebtables function declarations

2017-05-18 Thread Richard Guy Briggs
Git context diffs were being produced with unhelpful declaration types in the place of function names to help identify the funciton in which changes were made. Normalize ebtables function declarations so that git context diff function labels work as expected. Signed-off-by: Richard Guy Briggs &l

[PATCH 1/6 RFC] netfilter: normalize x_table function declarations

2017-05-18 Thread Richard Guy Briggs
Git context diffs were being produced with unhelpful declaration types in the place of function names to help identify the funciton in which changes were made. Normalize x_table function declarations so that git context diff function labels work as expected. Signed-off-by: Richard Guy Briggs &l

[PATCH 3/6 RFC] netfilter: audit only on xtables and ebtables syscall rule or standalone

2017-05-18 Thread Richard Guy Briggs
b.com/linux-audit/audit-kernel/issues/35 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- include/linux/audit.h |4 +++- include/uapi/linux/audit.h |1 + kernel/auditsc.c|3 ++- net/bridge/netfilter/ebtables.c | 25 +++-- ne

[PATCH 0/6 RFC] Address NETFILTER_CFG issues

2017-05-18 Thread Richard Guy Briggs
See: https://github.com/linux-audit/audit-kernel/issues/25 See: https://github.com/linux-audit/audit-kernel/issues/35 See: https://github.com/linux-audit/audit-kernel/issues/43 Richard Guy Briggs (6): netfilter: normalize x_table function declarations netfilter: normalize ebtables function de

Re: [PATCH V4 1/2] netfilter: xt_AUDIT: use consistent ipv4 network offset

2017-03-22 Thread Richard Guy Briggs
On 2017-03-22 12:11, Pablo Neira Ayuso wrote: > On Wed, Mar 22, 2017 at 03:05:36AM -0400, Richard Guy Briggs wrote: > > Even though the skb->data pointer has been moved from the link layer > > header to the network layer header, use the same method to calculate the > >

[PATCH V4 2/2] audit: normalize NETFILTER_PKT

2017-03-22 Thread Richard Guy Briggs
(1487874761.381:227): mark=0x223894b7 saddr=::1 daddr=::1 proto=58^] Issue: https://github.com/linux-audit/audit-kernel/issues/11 Test case: https://github.com/linux-audit/audit-testsuite/issues/43 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- v4: Write out nfmark unmo

[PATCH V4 1/2] netfilter: xt_AUDIT: use consistent ipv4 network offset

2017-03-22 Thread Richard Guy Briggs
Even though the skb->data pointer has been moved from the link layer header to the network layer header, use the same method to calculate the offset in ipv4 and ipv6 routines. Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- net/netfilter/xt_AUDIT.c |2 +- 1 files c

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-03 Thread Richard Guy Briggs
On 2017-03-03 13:45, Florian Westphal wrote: > Richard Guy Briggs <r...@redhat.com> wrote: > > > Perhaps I'm missing something here, but let me ask again, how does > > > userspace distinguish between an unset nfmark and a nfmark of > > > 0x? >

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-03 Thread Richard Guy Briggs
On 2017-03-03 14:22, Florian Westphal wrote: > Paul Moore <p...@paul-moore.com> wrote: > > On Fri, Mar 3, 2017 at 7:45 AM, Florian Westphal <f...@strlen.de> wrote: > > > Richard Guy Briggs <r...@redhat.com> wrote: > > >> > Perhaps I'm mis

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-03 Thread Richard Guy Briggs
On 2017-03-02 21:54, Paul Moore wrote: > On Thu, Mar 2, 2017 at 9:00 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-03-02 19:16, Paul Moore wrote: > >> On Wed, Mar 1, 2017 at 5:34 PM, Richard Guy Briggs <r...@redhat.com> wrote: > >>

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-02 Thread Richard Guy Briggs
On 2017-03-02 19:16, Paul Moore wrote: > On Wed, Mar 1, 2017 at 5:34 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-03-01 17:19, Paul Moore wrote: > >> On Wed, Mar 1, 2017 at 11:28 AM, Richard Guy Briggs <r...@redhat.com> > >> wrote: >

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-01 Thread Richard Guy Briggs
On 2017-03-01 17:19, Paul Moore wrote: > On Wed, Mar 1, 2017 at 11:28 AM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-28 17:22, Paul Moore wrote: > >> On Sun, Feb 26, 2017 at 3:49 PM, Richard Guy Briggs <r...@redhat.com> > >> wrote: > >

Re: [PATCH V3] audit: normalize NETFILTER_PKT

2017-03-01 Thread Richard Guy Briggs
On 2017-02-28 17:22, Paul Moore wrote: > On Sun, Feb 26, 2017 at 3:49 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > Eliminate flipping in and out of message fields, dropping fields in the > > process. > > > > Sample raw message format IPv4 UDP:

Re: AUDIT_NETFILTER_PKT message format

2017-02-26 Thread Richard Guy Briggs
On 2017-02-13 19:24, Richard Guy Briggs wrote: > On 2017-02-13 18:50, Paul Moore wrote: > > On Mon, Feb 13, 2017 at 3:50 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > > useless?smac, dmac, macproto > > > > Probably useless in the majori

[PATCH V3] audit: normalize NETFILTER_PKT

2017-02-26 Thread Richard Guy Briggs
(1487874761.381:227): mark=0x223894b7 saddr=::1 daddr=::1 proto=58^] Issue: https://github.com/linux-audit/audit-kernel/issues/11 Test case: https://github.com/linux-audit/audit-testsuite/issues/43 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- net/netfilter/xt_AUDIT.c

Re: [PATCH V2] audit: normalize NETFILTER_PKT

2017-02-23 Thread Richard Guy Briggs
On 2017-02-23 12:20, Steve Grubb wrote: > On Wednesday, February 22, 2017 9:50:54 PM EST Richard Guy Briggs wrote: > > Simplify and eliminate flipping in and out of message fields, relying on > > nfmark the way we do for audit_key. > > > > https://github.com/linux-a

Re: [PATCH V2] audit: normalize NETFILTER_PKT

2017-02-23 Thread Richard Guy Briggs
On 2017-02-23 18:06, Florian Westphal wrote: > Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-23 11:57, Paul Moore wrote: > > > On Thu, Feb 23, 2017 at 10:51 AM, Richard Guy Briggs <r...@redhat.com> > > > wrote: > > > > On 2017-02-23

Re: [PATCH V2] audit: normalize NETFILTER_PKT

2017-02-23 Thread Richard Guy Briggs
On 2017-02-23 12:06, Paul Moore wrote: > On Thu, Feb 23, 2017 at 12:04 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-23 11:57, Paul Moore wrote: > >> On Thu, Feb 23, 2017 at 10:51 AM, Richard Guy Briggs <r...@redhat.com> > >> wrote: >

Re: [PATCH V2] audit: normalize NETFILTER_PKT

2017-02-23 Thread Richard Guy Briggs
On 2017-02-23 11:57, Paul Moore wrote: > On Thu, Feb 23, 2017 at 10:51 AM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-23 06:20, Florian Westphal wrote: > >> Richard Guy Briggs <r...@redhat.com> wrote: > >> > Simplify and eliminate flip

Re: [PATCH V2] audit: normalize NETFILTER_PKT

2017-02-23 Thread Richard Guy Briggs
On 2017-02-23 06:20, Florian Westphal wrote: > Richard Guy Briggs <r...@redhat.com> wrote: > > Simplify and eliminate flipping in and out of message fields, relying on > > nfmark > > the way we do for audit_key. > > > > +struct nfpkt_par { >

Re: [PATCH V2] audit: normalize NETFILTER_PKT (fwd)

2017-02-23 Thread Richard Guy Briggs
7074abe0dddfc487aeeae6cff.1487813996.git@redhat.com> > > Hi Richard, > > [auto build test WARNING on v4.9-rc8] > [cannot apply to nf-next/master next-20170222] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the sys

Re: AUDIT_NETFILTER_PKT message format

2017-02-16 Thread Richard Guy Briggs
On 2017-02-16 20:57, Paul Moore wrote: > [NOTE: I'll respond back to the other part of your email later but I'm > running out of time in the day and this was a quick but important > response] > > On Thu, Feb 16, 2017 at 5:36 PM, Richard Guy Briggs <r...@redhat.com> wrote: &g

Re: AUDIT_NETFILTER_PKT message format

2017-02-16 Thread Richard Guy Briggs
On 2017-02-14 16:06, Paul Moore wrote: > On Mon, Feb 13, 2017 at 7:24 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-13 18:50, Paul Moore wrote: > >> On Mon, Feb 13, 2017 at 3:50 PM, Richard Guy Briggs <r...@redhat.com> > >> wrote: >

Re: AUDIT_NETFILTER_PKT message format

2017-02-16 Thread Richard Guy Briggs
On 2017-02-14 16:31, Steve Grubb wrote: > On Monday, February 13, 2017 3:50:05 PM EST Richard Guy Briggs wrote: > > > > > > The alternatives that I currently see are to drop packets for which > > > > > > there is no local process ownership, or to leave

Re: AUDIT_NETFILTER_PKT message format

2017-02-13 Thread Richard Guy Briggs
On 2017-02-13 18:50, Paul Moore wrote: > On Mon, Feb 13, 2017 at 3:50 PM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-13 12:57, Steve Grubb wrote: > >> On Friday, February 10, 2017 5:54:45 PM EST Richard Guy Briggs wrote: > >> > On

Re: AUDIT_NETFILTER_PKT message format

2017-02-13 Thread Richard Guy Briggs
On 2017-02-13 12:57, Steve Grubb wrote: > On Friday, February 10, 2017 5:54:45 PM EST Richard Guy Briggs wrote: > > On 2017-02-10 17:39, Steve Grubb wrote: > > > > The alternatives that I currently see are to drop packets for which > > > > there is no loc

Re: AUDIT_NETFILTER_PKT message format

2017-02-10 Thread Richard Guy Briggs
On 2017-02-10 17:39, Steve Grubb wrote: > On Thursday, February 9, 2017 8:12:47 PM EST Richard Guy Briggs wrote: > > On 2017-02-09 19:09, Steve Grubb wrote: > > > On Thursday, February 9, 2017 6:49:38 PM EST Richard Guy Briggs wrote: > > > > On 2017-02-08 18:09, Paul

Re: AUDIT_NETFILTER_PKT message format

2017-02-09 Thread Richard Guy Briggs
On 2017-02-08 18:09, Paul Moore wrote: > On Wed, Feb 8, 2017 at 11:30 AM, Steve Grubb <sgr...@redhat.com> wrote: > > On Tuesday, February 7, 2017 10:56:39 PM EST Paul Moore wrote: > >> On Tue, Feb 7, 2017 at 3:52 PM, Richard Guy Briggs <r...@redhat.com> wrote: >

Re: [RFC PATCH] audit: normalize NETFILTER_PKT

2017-02-08 Thread Richard Guy Briggs
On 2017-02-08 18:11, Paul Moore wrote: > On Wed, Feb 8, 2017 at 7:32 AM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-02-07 23:02, Paul Moore wrote: > >> On Tue, Feb 7, 2017 at 4:22 PM, Richard Guy Briggs <r...@redhat.com> wrote: > >>

Re: [RFC PATCH] audit: normalize NETFILTER_PKT

2017-02-07 Thread Richard Guy Briggs
omething we can > use to arrive at a working implementation that satisfies these > requirements. > > If this is purely about information flowing from A to B, would the > source and destination addr/proto/port for TCP and UDP suffice? Do we > need anything else? > > --

Re: AUDIT_NETFILTER_PKT message format

2017-02-07 Thread Richard Guy Briggs
On 2017-01-20 09:49, Steve Grubb wrote: > On Wednesday, January 18, 2017 6:35:29 PM EST Paul Moore wrote: > > On Wed, Jan 18, 2017 at 10:15 AM, Richard Guy Briggs <r...@redhat.com> > > wrote: > > > On 2017-01-18 07:32, Paul Moore wrote: > > >> On Wed, Ja

Re: [RFC PATCH] audit: normalize NETFILTER_PKT

2017-01-30 Thread Richard Guy Briggs
On 2017-01-30 15:53, Steve Grubb wrote: > On Fri, 27 Jan 2017 08:11:06 -0500 > Richard Guy Briggs <r...@redhat.com> wrote: > > Eliminate flipping in and out of message fields. > > > > https://github.com/linux-audit/audit-kernel/issues/11 > > Do you have sampl

[RFC PATCH] audit: normalize NETFILTER_PKT

2017-01-27 Thread Richard Guy Briggs
Eliminate flipping in and out of message fields. https://github.com/linux-audit/audit-kernel/issues/11 Signed-off-by: Richard Guy Briggs <r...@redhat.com> --- net/netfilter/xt_AUDIT.c | 92 +- 1 files changed, 66 insertions(+), 26 deletions(-)

Re: AUDIT_NETFILTER_PKT message format

2017-01-22 Thread Richard Guy Briggs
nternet browsers for example). > >The Linux audit subsystem simply logs system events, it does not > >enforce security policy. I suggest you investigate the different > >Linux firewall tools and LSMs, e.g. SELinux, as they should help you > >accomplish what you describe. > >

Re: AUDIT_NETFILTER_PKT message format

2017-01-18 Thread Richard Guy Briggs
On 2017-01-18 07:32, Paul Moore wrote: > On Wed, Jan 18, 2017 at 12:39 AM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-01-17 21:34, Richard Guy Briggs wrote: > >> On 2017-01-17 15:17, Paul Moore wrote: > >> > On Tue, Jan 17, 2017 at 11:12 AM,

Re: AUDIT_NETFILTER_PKT message format

2017-01-17 Thread Richard Guy Briggs
On 2017-01-17 21:34, Richard Guy Briggs wrote: > On 2017-01-17 15:17, Paul Moore wrote: > > On Tue, Jan 17, 2017 at 11:12 AM, Richard Guy Briggs <r...@redhat.com> > > wrote: > > > On 2017-01-17 08:55, Steve Grubb wrote: > > >> On Tuesday, January 17, 201

Re: AUDIT_NETFILTER_PKT message format

2017-01-17 Thread Richard Guy Briggs
On 2017-01-17 15:17, Paul Moore wrote: > On Tue, Jan 17, 2017 at 11:12 AM, Richard Guy Briggs <r...@redhat.com> wrote: > > On 2017-01-17 08:55, Steve Grubb wrote: > >> On Tuesday, January 17, 2017 12:25:51 AM EST Richard Guy Briggs wrote: > > ... > > >&

Re: AUDIT_NETFILTER_PKT message format

2017-01-17 Thread Richard Guy Briggs
On 2017-01-17 11:12, Richard Guy Briggs wrote: > On 2017-01-17 08:55, Steve Grubb wrote: > > On Tuesday, January 17, 2017 12:25:51 AM EST Richard Guy Briggs wrote: > > > I'm just starting to look at the normalization of AUDIT_NETFILTER_PKT > > > event m

Re: AUDIT_NETFILTER_PKT message format

2017-01-17 Thread Richard Guy Briggs
On 2017-01-17 08:55, Steve Grubb wrote: > On Tuesday, January 17, 2017 12:25:51 AM EST Richard Guy Briggs wrote: > > I'm just starting to look at the normalization of AUDIT_NETFILTER_PKT > > event messages and it is not quite as straightforward as I had expected. > > > &g

AUDIT_NETFILTER_PKT message format

2017-01-16 Thread Richard Guy Briggs
ot;, I don't see a problem since it isn't conditionally compiled out and won't be mis-interpreted. In the case of "secmark=", it could be mis-interpreted as offload_fwd_mark if that field is even compiled in, but that would be addressed in the compiler directive... One last question: Does anyone have a