All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Sven Vermeulen <sven.vermeulen@siphos.be>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
	Eric Paris <eparis@redhat.com>, SELinux <selinux@tycho.nsa.gov>
Subject: Re: [PATCH 01/11] Add test suite for audit2allow and sepolgen_ifgen
Date: Mon, 04 Nov 2013 09:49:31 -0500	[thread overview]
Message-ID: <5277B3FB.80405@redhat.com> (raw)
In-Reply-To: <CAPzO=NxkH-M329OrNVhS4+-smHfwgG9fZXs8fwEyGkJ5NaNqdQ@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/02/2013 12:51 PM, Sven Vermeulen wrote:
> On Thu, Oct 31, 2013 at 3:53 PM, Dan Walsh <dwalsh@redhat.com> wrote:
>> +++ b/policycoreutils/audit2allow/test.log @@ -0,0 +1,36 @@ 
>> +node=bill.example.com type=AVC_PATH msg=audit(1166045975.667:1128):
>> path="/usr/lib/libGL.so.1.2" +type=AVC msg=audit(1166045975.667:1129):
>> avc: denied { write } for comm=local dev=dm-0 name=root.lock pid=10581
>> scontext=system_u:system_r:postfix_local_t:s0 tclass=file
>> tcontext=system_u:object_r:mail_spool_t:s0 +node=bob.example.com
>> type=PATH msg=audit(1166111074.191:74): item=0 name="/etc/auto.net"
>> inode=16483485 dev=fd:00 mode=0100755 ouid=0 ogid=0 rdev=00:00
>> obj=system_u:object_r:automount_lock_t:s0 type=CWD
>> msg=audit(1166111074.191:74):  cwd="/" +node=bob.example.com type=SYSCALL
>> msg=audit(1166111074.191:74): arch=40000003 syscall=33 success=no
>> exit=-13 a0=92c5288 a1=1 a2=154d50 a3=92c5120 items=1 ppid=13935
>> pid=13944 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0
>> fsgid=0 tty=(none) comm="automount" exe="/usr/sbin/automount"
>> subj=system_u:system_r:automount_t:s0 key=(null)
> 
> Aren't those tests only possible when SELinux is enabled and the policy
> modules for the given types (such as automount_lock_t, mail_spool_t, ...)
> are loaded?
> 
> Also, it seems like the test only supports MLS-enabled policies; in Gentoo
> we also support non-MLS policies.
> 
> May I suggest to - have a test-mls.log and test-nonmls.log with the AVC
> information specific for those policies - use only types that are part of a
> base policy (and not have types in there that might not be available on a
> system) - only run the test if SELinux is enabled and a policy is loaded
> 
> Wkr, Sven Vermeulen
> 
> 
> -- This message was distributed to subscribers of the selinux mailing
> list. If you no longer wish to subscribe, send mail to
> majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes
> as the message.
> 
I was just grabbing the audit logs we test with setroubleshoot, so if you
would like to give more generic tests that would be fine with me.

Adding a policy.29  to test with it would seem to be a little heavy weight.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJ3s/sACgkQrlYvE4MpobM/CACfc3yklTZROuol2mWfho0Rkfua
zcYAoN3TKfL8RawZLcOnN4AGpF1BWuHs
=JJHz
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      parent reply	other threads:[~2013-11-04 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-31 14:53 [PATCH 01/01] Add test suite for audit2allow and sepolgen_ifgen Dan Walsh
2013-10-31 14:53 ` [PATCH 01/11] " Dan Walsh
2013-11-02 16:51   ` Sven Vermeulen
2013-11-04 13:20     ` Stephen Smalley
2013-11-04 14:49     ` Daniel J Walsh [this message]

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=5277B3FB.80405@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=eparis@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=sven.vermeulen@siphos.be \
    /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.