From: Daniel J Walsh <dwalsh@redhat.com>
To: Karl MacMillan <kmacmillan@tresys.com>, SELinux <selinux@tycho.nsa.gov>
Subject: refpolicy is missing on lots of hits with audit2allow -R.
Date: Mon, 19 Apr 2010 10:33:36 -0400 [thread overview]
Message-ID: <4BCC69C0.5040502@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The reason for this is threshold, setting. I think the interfaces are
getting more complicated and one AVC that is looking for read ends up
being two far different from the threshold, so audit2allow does not
report it.
For example.
node=(removed) type=AVC msg=audit(1271587735.632:422): avc: denied {
getattr } for pid=13239 comm="openvpn"
path="/home/bbaetz/.pki/vpn01_cacert.pem" dev=dm-3 ino=565334
scontext=system_u:system_r:openvpn_t:s0
tcontext=unconfined_u:object_r:home_cert_t:s0 tclass=file
node=(removed) type=SYSCALL msg=audit(1271587735.632:422): arch=c000003e
syscall=5 success=yes exit=0 a0=6 a1=7fffd84f4a20 a2=7fffd84f4a20 a3=18
items=0 ppid=13235 pid=13239 auid=4294967295 uid=0 gid=0 euid=0 suid=0
fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="openvpn"
exe="/usr/sbin/openvpn" subj=system_u:system_r:openvpn_t:s0 key=(null)
Finds userdom_read_home_certs but it's threshold is two far off, so it
reports nothing.
I think we should either eliminate the threshold and report the best
interface that we have, and let the policy writer decide if he wants the
match.
If you look at the interface userdom_read_home_certs.
[InterfaceVector userdom_read_home_certs $1:source ]
$1,home_cert_t,file,read,lock,getattr,open,ioctl
$1,home_cert_t,dir,ioctl,search,read,lock,open,getattr
$1,home_cert_t,lnk_file,read,getattr
$1,home_root_t,dir,getattr,open,search
$1,home_root_t,lnk_file,read,getattr
$1,user_home_dir_t,dir,getattr,open,search
$1,user_home_dir_t,lnk_file,read,getattr
A domain that is allowed to search the homedir is always going to
generate an AVC that is a long way off.
I thing we should either remove the bastards and just add all as childs,
or recode it like the attachment.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkvMacAACgkQrlYvE4MpobNeAgCfcoVssEQJ8mfZT/aBvAt0z7+3
CoMAnR1bOcXk7x/jIZ+0i2Kc/faUJAVk
=Uuf7
-----END PGP SIGNATURE-----
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 650 bytes --]
--- matching.py~ 2010-03-30 11:10:18.000000000 -0400
+++ matching.py 2010-04-19 10:31:51.000000000 -0400
@@ -63,14 +63,15 @@
def best(self):
if len(self.children):
return self.children[0]
- else:
- return None
+ if len(self.bastards):
+ return self.bastards[0]
+ return None
def __len__(self):
# Only return the length of the matches so
# that this can be used to test if there is
# a match.
- return len(self.children)
+ return len(self.children) + len(self.bastards)
def __iter__(self):
return iter(self.children)
[-- Attachment #3: diff.sig --]
[-- Type: application/pgp-signature, Size: 72 bytes --]
next reply other threads:[~2010-04-19 14:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 14:33 Daniel J Walsh [this message]
2010-04-19 15:53 ` refpolicy is missing on lots of hits with audit2allow -R Karl MacMillan
2010-04-20 14:37 ` Karl MacMillan
2010-04-20 18:09 ` Christopher J. PeBenito
2010-04-21 14:04 ` Daniel J Walsh
2010-04-22 1:53 ` Karl MacMillan
2010-04-22 13:04 ` Daniel J Walsh
2010-04-22 14:25 ` Karl MacMillan
2010-04-22 13:38 ` Daniel J Walsh
2010-04-22 14:29 ` Karl MacMillan
2010-04-22 19:16 ` Karl MacMillan
2010-04-23 15:09 ` Daniel J Walsh
2010-04-28 14:25 ` Karl MacMillan
2010-04-28 15:34 ` Daniel J Walsh
2010-04-28 15:34 ` Daniel J Walsh
2010-04-28 17:53 ` Karl MacMillan
2010-04-28 18:12 ` Joshua Brindle
2010-04-28 18:36 ` Daniel J Walsh
2010-04-28 18:47 ` Joshua Brindle
2010-04-28 19:01 ` Daniel J Walsh
2010-04-28 18:42 ` Karl MacMillan
2010-05-13 19:37 ` Stephen Smalley
2010-04-20 14:46 ` Daniel J Walsh
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=4BCC69C0.5040502@redhat.com \
--to=dwalsh@redhat.com \
--cc=kmacmillan@tresys.com \
--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.