Gentoo Archives: gentoo-commits

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/en/hardened: selinux-faq.xml
Date: Thu, 05 Apr 2012 20:38:31
Message-Id: 20120405203809.8F2E02004B@flycatcher.gentoo.org
1 swift 12/04/05 20:38:09
2
3 Modified: selinux-faq.xml
4 Log:
5 Adding info on SELinux with graphical logon managers
6
7 Revision Changes Path
8 1.14 xml/htdocs/proj/en/hardened/selinux-faq.xml
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml?rev=1.14&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml?rev=1.14&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml?r1=1.13&r2=1.14
13
14 Index: selinux-faq.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml,v
17 retrieving revision 1.13
18 retrieving revision 1.14
19 diff -u -r1.13 -r1.14
20 --- selinux-faq.xml 28 Mar 2012 19:10:25 -0000 1.13
21 +++ selinux-faq.xml 5 Apr 2012 20:38:09 -0000 1.14
22 @@ -1,6 +1,6 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml,v 1.13 2012/03/28 19:10:25 swift Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-faq.xml,v 1.14 2012/04/05 20:38:09 swift Exp $ -->
27
28 <guide>
29 <title>Gentoo Hardened SELinux Frequently Asked Questions</title>
30 @@ -17,8 +17,8 @@
31 elsewhere
32 </abstract>
33
34 -<version>20</version>
35 -<date>2012-02-26</date>
36 +<version>21</version>
37 +<date>2012-04-05</date>
38
39 <faqindex>
40 <title>Questions</title>
41 @@ -862,5 +862,35 @@
42
43 </body>
44 </section>
45 +<section id="xdm">
46 +<title>Logons through xdm (or similar) fail</title>
47 +<body>
48 +
49 +<p>
50 +If you log on through xdm, gdm, kdm, slim or any other graphical logon manager,
51 +you might notice in permissive mode that your context is off, and in enforcing
52 +mode that you just cannot log on.
53 +</p>
54 +
55 +<p>
56 +The reason of this is that PAM needs to be configured to include SELinux
57 +awareness in your session handling:
58 +</p>
59 +
60 +<pre caption="Updating pam setting for gdm">
61 +...
62 +session required pam_loginuid.so
63 +session optional pam_console.so
64 +<i>session optional pam_selinux.so</i>
65 +</pre>
66 +
67 +<p>
68 +Replicate the calls towards <path>pam_selinux.so</path> in the various
69 +<path>/etc/pam.d/gdm*</path> files (or similar depending on your graphical
70 +logon manager).
71 +</p>
72 +
73 +</body>
74 +</section>
75 </chapter>
76 </guide>