From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from goalie.tycho.ncsc.mil (goalie [144.51.3.250]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id o3MDc95u016495 for ; Thu, 22 Apr 2010 09:38:09 -0400 Received: from mx1.redhat.com (localhost [127.0.0.1]) by msux-gh1-uea02.nsa.gov (8.12.10/8.12.10) with ESMTP id o3MDd6LM019232 for ; Thu, 22 Apr 2010 13:39:06 GMT Message-ID: <4BD0513C.40403@redhat.com> Date: Thu, 22 Apr 2010 09:38:04 -0400 From: Daniel J Walsh MIME-Version: 1.0 To: Karl MacMillan CC: SELinux , "Christopher J. PeBenito" Subject: Re: refpolicy is missing on lots of hits with audit2allow -R. References: <4BCC69C0.5040502@redhat.com> <4BCF05D3.5090700@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have not fully examined this patch but I don't believe it will do what I need. If I define an interface that ends up looking like this: [InterfaceVector files_read_etc_files $1:source ] $1,configfile,dir,ioctl,search,read,lock,open,getattr $1,configfile,file,read,lock,getattr,open,ioctl $1,configfile,lnk_file,read,getattr And have and avc that looks like this: 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:etc_t:s0 tclass=file This will never match. What we need is a way to expand out configfile into etc_t, or to realize that etc_t is a configfile. The tool you added does not do the equivalent of seinfo -aconfigfile -x -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkvQUTwACgkQrlYvE4MpobMfWwCfbg6t/396jHWHCpasqosqf8Mw 7qkAoNiXMi8+RK5/4mBu8WbnGLvxlb7+ =EDEY -----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.