From: Stephen Smalley <sds@tycho.nsa.gov>
To: rajkumar <rajkumarmadhani@gmail.com>, Selinux@tycho.nsa.gov
Subject: Re: How to start SELinux on embedded device
Date: Thu, 14 May 2015 08:24:50 -0400 [thread overview]
Message-ID: <55549412.1030902@tycho.nsa.gov> (raw)
In-Reply-To: <55544356.1050802@gmail.com>
On 05/14/2015 02:40 AM, rajkumar wrote:
> Hi I am Rajkumar new to SELinux.
>
>
> My Requirement is to start SELinux porting on Embedded device consists
> of ARM processor.
> Using linux kernel version is 3.0.35.
> I started reading The SELinux notebook 4th edition.
> Made some changes in .config like enabling SELinux in kernel.
> And what are the changes need to be done rootfs apart from DAC and in
> kernel.
>
>
> Please provide guidelines.
There are at least two actively maintained examples of SELinux for
embedded that you can use as a guide:
1. Android SELinux, developed originally by us and contributed to the
Android Open Source Project, included in Android 4.3 (permissive), 4.4
(enforcing for root daemons), and 5.0 (enforcing for all processes).
See http://seandroid.bitbucket.org/index.html. Advantages: Minimalist
port of the SELinux userspace to Android (small footprint, no python or
other scripting language dependency on the target, elimination of glibc
dependencies, small policy written from scratch for Android). Actively
maintained by Google as part of Android. Disadvantages: A fork of the
SELinux userspace (although there is ongoing work to reduce the
divergence and possibly reunify the core userspace at least), and
specialized for Android so you'd have to adapt to OpenEmbedded or
whatever you are using as your base distribution.
2. meta-selinux layer for Yocto, developed and maintained by others
(Wind River originally, I believe, and now by several other people).
See http://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/.
Advantages: A complete upstream SELinux userspace and refpolicy, tracks
upstream regularly. Disadvantages: Large footprint, all of the
dependencies associated with upstream selinux userspace in Linux
distributions although you could perhaps prune it. There is a
packagegroup-selinux-minimal.bb that offers a smaller instantiation
without a python dependency I believe.
There have a number of other prior embedded SELinux efforts, but I don't
think any of them other than the two above are actively maintained or
publicly available.
prev parent reply other threads:[~2015-05-14 12:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 6:40 How to start SELinux on embedded device rajkumar
2015-05-14 7:44 ` Emre Can Kucukoglu
2015-05-14 9:41 ` rajkumar
2015-05-14 12:24 ` Stephen Smalley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55549412.1030902@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=Selinux@tycho.nsa.gov \
--cc=rajkumarmadhani@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.