Date: Tue, 27 Mar 2007 09:59:45 +0900 From: Yuichi Nakamura To: Stephen Smalley Cc: ynakam@hitachisoft.jp, "Christopher J. PeBenito" , busybox@kaigai.gr.jp, selinux@tycho.nsa.gov, Karl MacMillan , Chad Sellers Subject: Re: Separating libselinux/libsepol (Was: Re: BusyBox: load_policy applet) Message-Id: <20070327095945.1c4245ec.ynakam@hitachisoft.jp> In-Reply-To: <1174926929.3864.149.camel@moss-spartans.epoch.ncsc.mil> References: <20070323151513.395798cf.ynakam@hitachisoft.jp> <1174654177.31436.188.camel@moss-spartans.epoch.ncsc.mil> <20070326102809.e4f80126.ynakam@hitachisoft.jp> <1174918097.3864.83.camel@moss-spartans.epoch.ncsc.mil> <1174925566.28830.61.camel@sgc> <1174926929.3864.149.camel@moss-spartans.epoch.ncsc.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Hi. Thank you for opinion and information > Stephen, Christopher My personal opinion is following: # I think it is easier to explain my opinion by that than by commenting your posts. I want to make SELinux easy to customize for various embedded devices. The requirement for embedded SELinux will be various. Someone may want to write strict policy for all processes, and some may want to write policy only for one or two applications. Customize is neccesary. If device is rich enough, full-featured SELinux can be used. Mobile PDA may be example of such devices. It includes boolean, modular policy, semanage etc. Size optimization for libsemanage,libsepol, semanage will be necessarty as you say. However, what if devices are poor or there are small room for SELinux? Example of such devices are electrical appliances conneceted to network. In such environment, people want to make SELinux as small as possible. They may remove modular support, libsepol and booleans, uses only monolitic poilcy. I think even some hooks may be removed to improve performance. Some of such people are now being attracted to other light-weight Secure OSes, such as TOMOYO Linux(http://tomoyo.sourceforge.jp/en/1.3/) and AppArmor. I want to make them to be interested in SELinux. The SELinux for embedded in my brain(future SEDiet work) for now is following. * Embedded SELinux development kit is prepared and it has following features. * BusyBox includes SELinux commands * Developers can choose required features(boolean, module, semanage etc) * To implement it following will be necessary. * libselinux/libsepol/libsemanage is separated * Something like ENABLE_BOOLEAN, ENABLE_MODULE, ENABLE_SEMANAGE is embedded in source codes of libse*, BusyBox. * Least set of refpolicy is prepared: - only core policy(kernel policy module?) and macros are enabled by default - supports both modular and monolitic - To write new policy, SEEdit or other tools can be used - has a compiler that has feature for size optimization -- Yuichi Nakamura Hitachi Software Engineering Co., Ltd. Japan SELinux Users Group(JSELUG) SELinux Policy Editor: http://seedit.sourceforge.net/ -- 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.