All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ole Kliemann <ole@plastictree.net>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, Eric Paris <eparis@redhat.com>
Subject: Re: SELinux performance depending on type count
Date: Fri, 10 Aug 2012 21:26:21 +0200	[thread overview]
Message-ID: <20120810192621.GM2296@telvanni> (raw)
In-Reply-To: <1344626388.10631.82.camel@moss-pluto.epoch.ncsc.mil>

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

On Fri, Aug 10, 2012 at 03:19:48PM -0400, Stephen Smalley wrote:
> On Fri, 2012-08-10 at 21:11 +0200, Ole Kliemann wrote:
> > On Fri, Aug 10, 2012 at 02:55:30PM -0400, Stephen Smalley wrote:
> > > > If you want hard numbers, use the attached script. First start 
> > > > off in system_r:unconfined_r:unconfined_t. Run the script 
> > > > somewhere, /tmp e.g. For proper average value computation you 
> > > > need 'bc' installed, otherwise it's rounded but doesn't matter.
> > > 
> > > Triggers a ton of error messages in dmesg from SELinux about unmapped
> > > security contexts?
> > > 
> > > > Then switch to choke_u:choke_r:choke_t. Run the script here. If 
> > > > it's inconclusive, start uncommenting additional attributes in 
> > > > choke/src/support/choke.spt.
> > 
> > Sorry, my mistake, got confused. Here's the right stuff now. 
> > The script is in choke/test/
> 
> Well, that certainly yielded very different numbers but also lots of AVC
> denials, all of which look like this:
> time->Fri Aug 10 15:12:33 2012
> type=SYSCALL msg=audit(1344625953.002:10135): arch=c000003e syscall=188
> success=yes exit=0 a0=125a0e0 a1=311e81646b a2=125b5b0 a3=1d items=0
> ppid=10903 pid=18574 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0
> sgid=0 fsgid=0 tty=pts0 ses=1 comm="chcon" exe="/usr/bin/chcon"
> subj=choke_u:choke_r:choke_t key=(null)
> type=AVC msg=audit(1344625953.002:10135): avc:  denied  { associate }
> for  pid=18574 comm="chcon" name="9448e490-297f-4856-8022-da19d91db9a4"
> dev="dm-2" ino=1706648 scontext=choke_u:object_r:choke9x55_t
> tcontext=system_u:object_r:unconfined_t tclass=filesystem

Forgot to mention, I added that associate rule in the policy. You 
have to use the one I sent last and rebuild.

But you'll see the AVC denials are not causing the slowdown.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-08-10 19:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 13:02 SELinux performance depending on type count Ole Kliemann
2012-08-07 14:12 ` David Quigley
2012-08-07 17:07 ` William Roberts
2012-08-07 17:36   ` Daniel J Walsh
2012-08-08 20:44 ` Ole Kliemann
2012-08-09 10:45   ` Adam Tkac
2012-08-09 11:56     ` Ole Kliemann
2012-08-10 12:11 ` Ole Kliemann
2012-08-10 13:00   ` Stephen Smalley
2012-08-10 14:36     ` Ole Kliemann
2012-08-10 15:05       ` Stephen Smalley
2012-08-10 15:43         ` Ole Kliemann
2012-08-10 15:44         ` Ole Kliemann
2012-08-10 16:08           ` Stephen Smalley
2012-08-10 16:18             ` Stephen Smalley
2012-08-10 17:00               ` Ole Kliemann
2012-08-10 18:08                 ` Stephen Smalley
2012-08-10 18:46                   ` Ole Kliemann
2012-08-10 18:55                     ` Stephen Smalley
2012-08-10 19:11                       ` Ole Kliemann
2012-08-10 19:19                         ` Stephen Smalley
2012-08-10 19:26                           ` Ole Kliemann [this message]
2012-08-10 19:50                             ` Stephen Smalley
2012-08-10 21:38 ` Ole Kliemann
2012-08-13 12:35   ` Stephen Smalley
2012-08-27 15:28     ` Ole Kliemann
2012-08-27 16:24       ` Stephen Smalley

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=20120810192621.GM2296@telvanni \
    --to=ole@plastictree.net \
    --cc=eparis@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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.