From: pebenito@ieee.org (Chris PeBenito) Date: Sat, 13 Aug 2016 10:11:56 -0400 Subject: [refpolicy] [PATCH v3 2/2] Correctly label files under /lib/firmware In-Reply-To: <1471094087.21480.6.camel@trentalancia.net> References: <1470670886.10405.7.camel@trentalancia.net> <1470673622.10405.9.camel@trentalancia.net> <1470675397.2909.1.camel@trentalancia.net> <1b379d3f-6a85-3a6f-5392-0f4a72962d83@ieee.org> <1471094087.21480.6.camel@trentalancia.net> Message-ID: <47cce609-b31a-b533-2fc8-783bb117ba1c@ieee.org> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 08/13/16 09:14, Guido Trentalancia wrote: > Hello Chris. > > On Sat, 13/08/2016 at 08.55 -0400, Chris PeBenito wrote: >> On 08/08/16 12:56, Guido Trentalancia wrote: >>> Create a new "firmware_t" file type, an interface to read such type >>> of files, >>> an interface to search directories containing such type of files >>> and finally >>> make sure that files under /lib/firmware (firmware data files >>> usually shipped >>> with the kernel) are properly labeled using the new label. >> >> I'm not clear why a new type is needed. The code should generally >> be >> read-only, not executable, and is otherwise non-sensitive. It seems >> like usr_t would be more appropriate to label the firmware files, >> than >> the current lib_t. > > I have created a new version of the patch, where a specific firmware > type is created so that permissions can be granted to read the > corresponding file context only, instead of generic lib_t read > permissions. I don't understand why the reading would need to be restricted. The files aren't sensitive. -- Chris PeBenito