[PATCH 1/3] Patch for mcstrans to not abort when it sees a squeeze config file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Russell Coker <russell@xxxxxxxxxxxx>

---
 policycoreutils/mcstrans/src/mcstrans.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/policycoreutils/mcstrans/src/mcstrans.c b/policycoreutils/mcstrans/src/mcstrans.c
index 4d31857..c655a41 100644
--- a/policycoreutils/mcstrans/src/mcstrans.c
+++ b/policycoreutils/mcstrans/src/mcstrans.c
@@ -745,6 +745,13 @@ process_trans(char *buffer) {
 
 	if (*buffer == 0) return 0;
 
+	/* special case for old format */
+	if(!strcmp("s0=", buffer))
+	{
+		syslog(LOG_ERR, "Ignoring old format line \"s0=\".");
+		return 0;
+	}
+
 	char *delim = strpbrk (buffer, "=!>");
 	if (! delim) {
 		syslog(LOG_ERR, "invalid line (no !, = or >) %d", lineno);
-- 
1.7.10


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux