Received: from mummy.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id m6VGRkMc021717 for ; Thu, 31 Jul 2008 12:27:46 -0400 Received: from cdptpa-omtalb.mail.rr.com (jazzhorn.ncsc.mil [144.51.5.9]) by mummy.ncsc.mil (8.12.10/8.12.10) with ESMTP id m6VGRhoQ029498 for ; Thu, 31 Jul 2008 16:27:45 GMT Message-ID: <4891E7FA.9040807@kutulu.org> Date: Thu, 31 Jul 2008 12:27:38 -0400 From: Mike Edenfield MIME-Version: 1.0 To: "Christopher J. PeBenito" CC: SELinux Mailing List Subject: Re: [refpolicy patch, second try] samba policy updates References: <488DED3A.1030005@kutulu.org> <1217342823.4934.42.camel@defiant.pebenito.net> <488F5590.6060908@kutulu.org> <1217361293.5525.13.camel@gorn.pebenito.net> <488F8A31.8070301@kutulu.org> <1217509017.4114.40.camel@gorn.columbia.tresys.com> In-Reply-To: <1217509017.4114.40.camel@gorn.columbia.tresys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Christopher J. PeBenito wrote: > Interfaces should not have side effects. If you have a create interface > and it does something else like filetrans, filetrans is a side effect. > The tunable should be: > > tunable_policy( > unprivuser_create_home_dirs() > unprivuser_home_filetrans_home_dir() > ) Ok, I think I get it now. Sorry for being kinda dense :) So, what I should have dome is something like this: tunable_policy ( unprivuser_home_filetrans_home_dir() unprivuser_create_home_dir() unprivuser_add_entry_home_dir() ) with two new interfaces: unprivuser_create_home_dir ( allow user_home_dir_t:dir create_dir_perms ) unprivuser_add_entry_home_dir ( allow user_home_dir_t:dir add_entry_dir_perms ) -- 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.