Received: from jazzband.ncsc.mil (jazzband.ncsc.mil [144.51.5.4]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id h5S7fG0S017885 for ; Sat, 28 Jun 2003 03:41:16 -0400 (EDT) Received: from jazzband.ncsc.mil (localhost [127.0.0.1]) by jazzband.ncsc.mil with ESMTP id h5S7fF5e021594 for ; Sat, 28 Jun 2003 07:41:15 GMT Received: from sat.sws.net.au ([202.5.161.49]) by jazzband.ncsc.mil with ESMTP id h5S7fD92021591 for ; Sat, 28 Jun 2003 07:41:13 GMT From: Russell Coker Reply-To: Russell Coker To: Colin Walters , selinux@tycho.nsa.gov Subject: Re: screen.te zsh fixes Date: Sat, 28 Jun 2003 17:41:05 +1000 References: <1056782197.14920.85.camel@columbia> In-Reply-To: <1056782197.14920.85.camel@columbia> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200306281741.05471.russell@coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Sat, 28 Jun 2003 16:36, Colin Walters wrote: > Similar fixes to screen.te needed for the zsh symlinks. Patch attached. OK, it's in my tree. > You know though, I am thinking more and more that we should treat > /etc/alternatives specially for setfiles. We could follow the symlink > and label it with the type of the file it points to. That way we > wouldn't have to add all these special etc_t:{lnk_file} { read } > permissions to various programs that are able to execute bin_t or > whatever. So instead of adding "etc_t:lnk_file read" we add "foo_exec_t:lnk_file read" and "bar_exec_t:lnk_file read" because the domain in question needs to access executable types foo_exec_t and bar_exec_t. I guess we could change the can_exec() macro to allow this at the same time. Another thing I've been thinking about is the handling of the /etc/localtime, it gets regenerated by many scripts with type etc_t. Maybe it would be best if we use etc_t for /etc/localtime of type symlink and locale_t for a file type (hard link). Then we can have a macro read_locale() which on Debian allows reading etc_t:lnk_file (and thus covers /etc/alternatives as a side-affect). Does Red Hat have something like /etc/alternatives? Or is it only a Debian thing? PS This is going to be a bit ugly. Whatever we do to solve this is going to require a relabel of /etc as part of the upgrade process. But I am coming to the conclusion that we have got some things wrong in the past and should fix them. -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.