All of lore.kernel.org
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: Richard Guy Briggs <rgb@redhat.com>, Steve Grubb <sgrubb@redhat.com>
Cc: "linux-audit@redhat.com" <linux-audit@redhat.com>
Subject: Re: Preferred subj= with multiple LSMs
Date: Mon, 15 Jul 2019 12:37:06 -0700	[thread overview]
Message-ID: <c46932ec-e38e-ba15-7ceb-70e0fe0ef5dc@schaufler-ca.com> (raw)
In-Reply-To: <20190715190457.pqlaxjcxhdcosdsz@madcap2.tricolour.ca>

On 7/15/2019 12:04 PM, Richard Guy Briggs wrote:
> On 2019-07-13 11:08, Steve Grubb wrote:
>> Hello,
>>
>> On Friday, July 12, 2019 12:33:55 PM EDT Casey Schaufler wrote:
>>> Which of these options would be preferred for audit records
>>> when there are multiple active security modules?
>> I'd like to start out with what is the underlying problem that results in 
>> this? For example, we have pam. It has multiple modules each having a vote. 
>> If a module votes no, then we need to know who voted no and maybe why. We 
>> normally do not need to know who voted yes.
>>
>> So, in a stacked situation, shouldn't each module make its own event, if 
>> required, just like pam? And then log the attributes as it knows them? Also, 
>> what model is being used? Does first module voting no end access voting? Or 
>> does each module get a vote even if one has already said no?
>>
>> Also, we try to keep LSM subsystems separated by record type numbers. So, 
>> apparmour and selinux events are entirely different record numbers and 
>> formats. Combining everything into one record is going to be problematic for 
>> reporting.
> I was wrestling with the options below and was uncomfortable with all of
> them because none of them was guaranteed not to break existing parsers.

I too, am uncomfortable regarding record parsing.

> Steve's answer is the obvious one, ideally allocating a seperate range
> to each LSM with each message type having its own well defined format.

It doesn't address the issue of success records, or records
generated outside the security modules.

>
>> -Steve
>>
>>> I'm not asking
>>> if we should do it, I'm asking which of these options I should
>>> implement when I do do it. I've prototyped #1 and #2. #4 is a
>>> minor variant of #1 that is either better for compatibility or
>>> worse, depending on how you want to look at it. I understand
>>> that each of these offer challenges. If I've missed something
>>> obvious, I'd be delighted to consider #5.
>>>
>>> Thank you.
>>>
>>> Option 1:
>>>
>>> 	subj=selinux='x:y:z:s:c',apparmor='a'
>>>
>>> Option 2:
>>>
>>> 	subj=x:y:z:s:c subj=a
>>>
>>> Option 3:
>>>
>>> 	lsms=selinux,apparmor subj=x:y:z:s:c subj=a
>>>
>>> Option 4:
>>>
>>> 	subjs=selinux='x:y:z:s:c',apparmor='a'
>>>
>>> Option 5:
>>>
>>> 	Something else.
> - RGB
>
> --
> Richard Guy Briggs <rgb@redhat.com>
> Sr. S/W Engineer, Kernel Security, Base Operating Systems
> Remote, Ottawa, Red Hat Canada
> IRC: rgb, SunRaycer
> Voice: +1.647.777.2635, Internal: (81) 32635

  reply	other threads:[~2019-07-15 19:37 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 16:33 Preferred subj= with multiple LSMs Casey Schaufler
2019-07-12 16:33 ` Casey Schaufler
2019-07-13 15:08 ` Steve Grubb
2019-07-13 15:08   ` Steve Grubb
2019-07-15 19:04   ` Richard Guy Briggs
2019-07-15 19:04     ` Richard Guy Briggs
2019-07-15 19:37     ` Casey Schaufler [this message]
2019-07-15 21:28       ` Paul Moore
2019-07-15 22:55         ` Steve Grubb
2019-07-16 16:00           ` Casey Schaufler
2019-07-16 16:14             ` Steve Grubb
2019-07-16 16:33               ` Lenny Bruzenak
2019-07-16 16:37                 ` Steve Grubb
2019-07-16 17:16               ` Casey Schaufler
2019-07-16 17:16                 ` Casey Schaufler
2019-07-16 17:12           ` Paul Moore
2019-07-16 17:29             ` Casey Schaufler
2019-07-16 17:29               ` Casey Schaufler
2019-07-16 17:43               ` Paul Moore
2019-07-16 17:43                 ` Paul Moore
2019-07-16 17:58                 ` Casey Schaufler
2019-07-16 17:58                   ` Casey Schaufler
2019-07-16 18:06                 ` Steve Grubb
2019-07-16 18:06                   ` Steve Grubb
2019-07-16 18:41                   ` Casey Schaufler
2019-07-16 18:41                     ` Casey Schaufler
2019-07-16 21:25                     ` Paul Moore
2019-07-16 21:25                       ` Paul Moore
2019-07-16 21:46                       ` Steve Grubb
2019-07-16 21:46                         ` Steve Grubb
2019-07-16 22:18                         ` Casey Schaufler
2019-07-16 22:18                           ` Casey Schaufler
2019-07-16 23:13                           ` Paul Moore
2019-07-16 23:13                             ` Paul Moore
2019-07-16 23:47                             ` Casey Schaufler
2019-07-16 23:47                               ` Casey Schaufler
2019-07-17 12:14                               ` Paul Moore
2019-07-17 12:14                                 ` Paul Moore
2019-07-17 15:49                                 ` Casey Schaufler
2019-07-17 15:49                                   ` Casey Schaufler
2019-07-17 16:23                                   ` Paul Moore
2019-07-17 16:23                                     ` Paul Moore
2019-07-17 23:02                                     ` Casey Schaufler
2019-07-17 23:02                                       ` Casey Schaufler
2019-07-18 13:10                                       ` Simon McVittie
2019-07-18 13:10                                         ` Simon McVittie
2019-07-18 16:13                                         ` Casey Schaufler
2019-07-18 16:13                                           ` Casey Schaufler
2019-07-19 12:15                                           ` Simon McVittie
2019-07-19 12:15                                             ` Simon McVittie
2019-07-19 16:29                                             ` Casey Schaufler
2019-07-19 16:29                                               ` Casey Schaufler
2019-07-19 18:47                                               ` Simon McVittie
2019-07-19 18:47                                                 ` Simon McVittie
2019-07-19 20:02                                                 ` Dbus and multiple LSMs (was Preferred subj= with multiple LSMs) Casey Schaufler
2019-07-19 20:02                                                   ` Casey Schaufler
2019-07-22 11:36                                                   ` Simon McVittie
2019-07-22 11:36                                                     ` Simon McVittie
2019-07-22 16:04                                                     ` Casey Schaufler
2019-07-22 16:04                                                       ` Casey Schaufler
2019-07-19 21:21                                       ` Preferred subj= with multiple LSMs Paul Moore
2019-07-19 21:21                                         ` Paul Moore
2019-07-22 20:50                                         ` James Morris
2019-07-22 20:50                                           ` James Morris
2019-07-22 22:01                                           ` Casey Schaufler
2019-07-22 22:01                                             ` Casey Schaufler
2019-07-22 22:30                                             ` Paul Moore
2019-07-22 22:30                                               ` Paul Moore
2019-07-23  0:11                                               ` Casey Schaufler
2019-07-23  0:11                                                 ` Casey Schaufler
2019-07-23 14:06                                               ` Simon McVittie
2019-07-23 14:06                                                 ` Simon McVittie
2019-07-23 17:32                                                 ` Casey Schaufler
2019-07-23 17:32                                                   ` Casey Schaufler
2019-07-23 21:46                                                 ` James Morris
2019-07-23 21:46                                                   ` James Morris
2019-07-16 23:09                         ` Paul Moore
2019-07-16 23:09                           ` Paul Moore
2019-07-17  4:36                           ` James Morris
2019-07-17  4:36                             ` James Morris
2019-07-17 12:23                             ` Paul Moore
2019-07-17 12:23                               ` Paul Moore
2019-07-18 15:01                       ` William Roberts
2019-07-18 15:01                         ` William Roberts
2019-07-18 18:48                         ` Casey Schaufler
2019-07-18 18:48                           ` Casey Schaufler

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=c46932ec-e38e-ba15-7ceb-70e0fe0ef5dc@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=linux-audit@redhat.com \
    --cc=rgb@redhat.com \
    --cc=sgrubb@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.