From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
by finch.gentoo.org with esmtp (Exim 4.60)
(envelope-from )
id 1QDY3I-0004ns-Mq
for garchives@archives.gentoo.org; Sat, 23 Apr 2011 08:18:53 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
by pigeon.gentoo.org (Postfix) with SMTP id B8A87E03E0;
Sat, 23 Apr 2011 08:18:44 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
by pigeon.gentoo.org (Postfix) with ESMTP id 39275E03E0
for ; Sat, 23 Apr 2011 08:18:43 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
(No client certificate requested)
by smtp.gentoo.org (Postfix) with ESMTPS id 288312AC014
for ; Sat, 23 Apr 2011 08:18:43 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
by pelican.gentoo.org (Postfix) with ESMTP id 4C52280327
for ; Sat, 23 Apr 2011 08:18:42 +0000 (UTC)
From: "Sven Vermeulen"
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen"
Message-ID: <50809689f04a6762a7f456e5b6b033f3baeae9b5.SwifT@gentoo>
Subject: [gentoo-commits] proj/hardened-docs:master commit in: xml/
X-VCS-Repository: proj/hardened-docs
X-VCS-Files: xml/selinux-development.xml
X-VCS-Directories: xml/
X-VCS-Committer: SwifT
X-VCS-Committer-Name: Sven Vermeulen
X-VCS-Revision: 50809689f04a6762a7f456e5b6b033f3baeae9b5
Date: Sat, 23 Apr 2011 08:18:42 +0000 (UTC)
Precedence: bulk
List-Post:
List-Help:
List-Unsubscribe:
List-Subscribe:
List-Id: Gentoo Linux mail
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt:
X-Archives-Hash: acc1900e89f7e16cb98c9bac2fa7d488
commit: 50809689f04a6762a7f456e5b6b033f3baeae9b5
Author: Sven Vermeulen siphos be>
AuthorDate: Sat Apr 23 08:18:39 2011 +0000
Commit: Sven Vermeulen siphos be>
CommitDate: Sat Apr 23 08:18:39 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-docs=
.git;a=3Dcommit;h=3D50809689
various updates
---
xml/selinux-development.xml | 574 +++++++++++++++++++++++++++++++++++++=
+++---
1 files changed, 544 insertions(+), 30 deletions(-)
diff --git a/xml/selinux-development.xml b/xml/selinux-development.xml
index d2fccc3..c4ee4b5 100644
--- a/xml/selinux-development.xml
+++ b/xml/selinux-development.xml
@@ -110,6 +110,12 @@ highlights...
interface file which can then be called by other modules. Thi=
s
includes the necessary permissions to allow domain transitions
+
+ SELinux uses attributes to make multiple domains manageable. Domains=
can
+ have certain permissions against all domains or types that are given=
a
+ particular attribute. Be aware of this when you start assigning attr=
ibutes
+ to your own types or domains.
+
=20
=20
-TODO talk about potentially reusing domains (like apache module providin=
g the
-various httpd_* domains which can be reused by lighttpd). Talk about ass=
igning
-the proper labels to the files to see if that is sufficient.
+If you are facing problems because you run an application which has no d=
omain
+itself (and hence is probably running in the user_t,
+staff_t or sysadm_t domains - or even tries to=
run in
+the initrc_t domain), you will need to create one. But befo=
re we do
+that, it might be possible that the application can work within the doma=
in
+definition of a different application.
+
+
+
+One example here is lighttpd. This lightweight HTTPd service "uses" the
+definitions offered by the apache module. By marking its ex=
ecutable
+file httpd_exec_t it runs in the httpd_t domai=
n and
+uses the same policy like Apache. By labeling the files according to the
+apache.fc definitions (but now for lighttpd) it might Just =
Work
+™
+
+
+
+Reusing existing domains requires that you at least consider the followi=
ng
+aspects:
=20
+
+ -
+ Will the application run on the same system as the application for w=
hich the
+ domain is originally intended? If so, then both might run in the sam=
e domain
+ (and as such have more privileges towards each other than intended) =
which
+ might not be what you want.
+
+ -
+ Do you need to enhance (read: add additional privileges) the master =
domain?
+ If so, make sure that you don't add more privileges than the origina=
l domain
+ would ever need to the extend that these privileges become a securit=
y risk.
+
+
+