From: Stephen Smalley <sds@tycho.nsa.gov>
To: hoefer@ieee.org
Cc: Don Hoefer <don.hoefer@verizon.net>, selinux@tycho.nsa.gov
Subject: Re: Need information on building embedded systems.
Date: Fri, 25 Oct 2013 11:58:29 -0400 [thread overview]
Message-ID: <526A9525.3060106@tycho.nsa.gov> (raw)
In-Reply-To: <22095736.309560.1382638891432.JavaMail.root@vms170025>
On 10/24/2013 02:21 PM, Don Hoefer wrote:
> We are using kernel 3.8.13, busybox 1.20.2. init says that it is version 2.88, along with that we have the typical Sys-V init with /etc/rc?.d startup scripts.
So did you enable the SELinux support in your init and busybox when you
built it?
We didn't develop the busybox SELinux support ourselves; that was done
by others in the SELinux community, but it has been in upstream busybox
for a while. I'm not sure what state it is in currently.
sysvinit was extended by Red Hat with SELinux support long ago and that
was upstreamed as well. init typically performs the initial policy load.
What CONFIG_SECURITY_* options did you enable in your kernel
configuration? A sample set enabled in one of our Android kernel trees is:
+CONFIG_AUDIT=y
+CONFIG_SECURITY=y
+CONFIG_LSM_MMAP_MIN_ADDR=4096
+CONFIG_SECURITY_NETWORK=y
+CONFIG_SECURITY_SELINUX=y
+CONFIG_DEFAULT_SECURITY_SELINUX=y
+CONFIG_NETWORK_SECMARK=y
+CONFIG_NF_CONNTRACK_SECMARK=y
+CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y
+CONFIG_NETFILTER_XT_TARGET_SECMARK=y
+CONFIG_NETFILTER_ADVANCED=y
+CONFIG_IP_NF_SECURITY=y
You also need the CONFIG_*_FS_XATTR and CONFIG_*_FS_SECURITY options
enabled for each filesystem that you use that supports per-file security
attributes, e.g.
Kernel 3.8.13 supports up through policy.28, so as long as your
checkpolicy generates a policy file in version 28 or older you are fine.
The -c option to checkpolicy can be used to force it to an older
version; we use that for Android to ensure compatibility with the
Android 3.4 kernels.
--
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.
next prev parent reply other threads:[~2013-10-25 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 18:21 Re: Need information on building embedded systems Don Hoefer
2013-10-25 15:58 ` Stephen Smalley [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-10-24 19:04 Don Hoefer
2013-10-25 16:22 ` Stephen Smalley
2013-10-24 17:15 Don Hoefer
2013-10-24 17:41 ` Stephen Smalley
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=526A9525.3060106@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=don.hoefer@verizon.net \
--cc=hoefer@ieee.org \
--cc=selinux@tycho.nsa.gov \
/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.