On Wed, 2 Dec 2009, "David P. Quigley" <dpquigl@xxxxxxxxxxxxx> wrote: > 1) Where is it located? > 2) Is your proposal to implement it as a new fs with a name something > like portfs? If it's going to be generic to all LSM modules then we can't use /selinux/ports. So I guess another filesystem is required. > 3) How does it get populated initially? Do you have a file for each port > right off the bat? Do you only have files for ports with policy or whose > permissions differ from the default? It seems to me that the majority of ports will not have discrete labels. So out of the 65535 ports it would probably be uncommon to have more than 200 labels. Some aspects of the programming will be easier if we have one file per port. But then changing the default label would require writing to more than 60,000 files in the common cases. One possibility would be to have a default label for any port that doesn't have a specific label. We could have a file per port that has a specific label (probably not much more than 1024 entries on typical systems) and then have a default label for the rest. Setting the port to the default label would be a matter of either unlinking the file which has the specific label or writing "". > 4) How do I assign a label to the port? You have an issue here that > these files are objects themselves. You can't just label the file with > what you want the port labeled because now you can't mediate access to > these file objects outside of the label on the port itself. The files would have to have the labels as their contents. The advantage of this is that the permissions needed to set the labels would be independent of what the labels are. -- russell@xxxxxxxxxxxx http://etbe.coker.com.au/ My Main Blog http://doc.coker.com.au/ My Documents Blog -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.