hal/tools/linux add_selinux.c,1.1,1.2

David Zeuthen david at freedesktop.org
Sun Mar 13 15:28:42 PST 2005


Update of /cvs/hal/hal/tools/linux
In directory gabe:/tmp/cvs-serv29623/tools/linux

Modified Files:
	add_selinux.c 
Log Message:
2005-03-13  David Zeuthen  <davidz at redhat.com>

	* tools/linux/add_selinux.c (main): Check if selinux is enabled,
	cause we still get the removable context on kernels where SELinux
	is disabled



Index: add_selinux.c
===================================================================
RCS file: /cvs/hal/hal/tools/linux/add_selinux.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- add_selinux.c	25 Feb 2005 04:52:24 -0000	1.1
+++ add_selinux.c	13 Mar 2005 23:28:40 -0000	1.2
@@ -109,7 +109,11 @@
 		goto out;
 	}
 
+	if (!is_selinux_enabled ())
+		goto out;
+
 	if (get_selinux_removable_context (&scontext) == 0) {
+
 		if (is_volume)
 			snprintf (buf, sizeof (buf), "volume.policy.mount_option.fscontext=%s", scontext);
 		else




More information about the hal-commit mailing list