From: Daniel J Walsh <dwalsh@redhat.com>
To: Karl MacMillan <kmacmillan@tresys.com>, SELinux <selinux@tycho.nsa.gov>
Subject: Re: refpolicy is missing on lots of hits with audit2allow -R.
Date: Tue, 20 Apr 2010 10:46:30 -0400 [thread overview]
Message-ID: <4BCDBE46.5060507@redhat.com> (raw)
In-Reply-To: <4BCC69C0.5040502@redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/19/2010 10:33 AM, Daniel J Walsh wrote:
> 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.
>
I tried that but we got down to,
# userdom_read_home_certs(openvpn_t) # [283]
Which is still way higher then 120.
Isn't the problem that openvpn_t has
1# sesearch -A -s openvpn_t -t home_root_t
Found 2 semantic av rules:
allow openvpn_t home_root_t : dir { getattr search open } ;
allow openvpn_t home_root_t : lnk_file { read getattr } ;
- -bash-4.1# sesearch -A -s openvpn_t -t user_home_dir_t
Found 1 semantic av rules:
allow openvpn_t user_home_dir_t : dir { ioctl read getattr lock
search open } ;
But these count towards the total?
Should we be checking in the policy what access is already present in
the domain, to make a better decision. Or would this end up taking to long.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkvNvkYACgkQrlYvE4MpobPVGQCfZEeAd1f7424uWXrJGbiUDyPZ
Z5UAn1k60lKjKJxZtq5d6ON51iKMvda2
=2SYZ
-----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.
prev parent reply other threads:[~2010-04-20 14:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 14:33 refpolicy is missing on lots of hits with audit2allow -R Daniel J Walsh
2010-04-19 15:53 ` 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 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-04-28 15:34 ` Daniel J Walsh
2010-05-13 19:37 ` Stephen Smalley
2010-04-20 14:46 ` 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=4BCDBE46.5060507@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.