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 1SHfiU-0004c9-1O for garchives@archives.gentoo.org; Tue, 10 Apr 2012 18:22:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F262E090F; Tue, 10 Apr 2012 18:22:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2FC00E090F for ; Tue, 10 Apr 2012 18:22:50 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E4F61B4006 for ; Tue, 10 Apr 2012 18:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2B1F5E542E for ; Tue, 10 Apr 2012 18:22:47 +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: <1334082147.2edf36cf8da16833111fdf7f7f46fa7169bc0e7f.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-docs:master commit in: xml/selinux/ X-VCS-Repository: proj/hardened-docs X-VCS-Files: xml/selinux/hb-using-troubleshoot.xml X-VCS-Directories: xml/selinux/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 2edf36cf8da16833111fdf7f7f46fa7169bc0e7f X-VCS-Branch: master Date: Tue, 10 Apr 2012 18:22:47 +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: f6884a86-2bda-436e-94f2-41cf12af4df8 X-Archives-Hash: e71198a92423e1254341bb47922150fd commit: 2edf36cf8da16833111fdf7f7f46fa7169bc0e7f Author: Sven Vermeulen siphos be> AuthorDate: Tue Apr 10 18:22:27 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Tue Apr 10 18:22:27 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-docs= .git;a=3Dcommit;h=3D2edf36cf Fix bug #411377 - Additional details on working out corrupted policy stor= e --- xml/selinux/hb-using-troubleshoot.xml | 34 +++++++++++++++++++++++++++= ++++- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/xml/selinux/hb-using-troubleshoot.xml b/xml/selinux/hb-using= -troubleshoot.xml index 6a7d2dd..fc0323d 100644 --- a/xml/selinux/hb-using-troubleshoot.xml +++ b/xml/selinux/hb-using-troubleshoot.xml @@ -7,8 +7,8 @@ =20 -1 -2011-12-11 +2 +2012-04-10 =20
Unable To Load SELinux Policy @@ -111,6 +111,36 @@ points to a selinux/v2refpolicy/... pro= file. =20 + +Policy Store is Corrupt + + +

+If you encounter problems during boot-up or semodule operations w= hich +fail with loading problems, but cannot be resolved with the above soluti= on, then +you might need to reinstall the policies after eliminating the corrupt s= tore. +

+ +
+~# semodule -n -B
+libsemanage.semanage_load_module: Error while reading from module file
+/etc/selinux/targeted/modules/tmp/base.pp. (No such file or directory)
+
+~# setenforce 0
+~# mv /etc/selinux/targeted /etc/selinux/targeted.old
+~# FEATURES=3D"-selinux" emerge -1av $(qlist -IC sec-policy)
+~# restorecon -R /etc/selinux
+
+ +

+This will effectively disable the current, corrupted SELinux policy stor= e and +then use Portage to reinstall all SELinux policy packages that are insta= lled on +the system. When done, the file contexts of /etc/selinux ar= e +restored, after which you should be able to continue. +

+ + +
=20