All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] move genhomedircon call out of transaction
@ 2005-11-14 22:09 Chad Sellers
  2005-11-14 23:02 ` Ivan Gyurdiev
  2005-11-15 13:23 ` Stephen Smalley
  0 siblings, 2 replies; 7+ messages in thread
From: Chad Sellers @ 2005-11-14 22:09 UTC (permalink / raw)
  To: 'Daniel J Walsh'; +Cc: selinux-dev, Stephen Smalley, selinux

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

Attached is a patch that moves the genhomedircon patch out of the libsemanage 
transaction.  This is necessary since genhomedircon now uses libsemanage, and 
enters a transaction itself.

Chad

-- 
----------------------
Chad Sellers
Tresys Technology, LLC
csellers@tresys.com
(410)290-1411 x117
http://www.tresys.com

[-- Attachment #2: genhomedircon-outside-trans.diff --]
[-- Type: text/x-diff, Size: 895 bytes --]

Index: libsemanage/src/semanage_store.c
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux-usr/libsemanage/src/semanage_store.c,v
retrieving revision 1.21
diff -u -r1.21 semanage_store.c
--- libsemanage/src/semanage_store.c	9 Nov 2005 14:52:55 -0000	1.21
+++ libsemanage/src/semanage_store.c	14 Nov 2005 21:43:09 -0000
@@ -950,11 +950,6 @@
 		goto cleanup;
 	}
 
-	if ((r = semanage_exec_prog(sh, sh->conf->genhomedircon, sh->conf->store_path, "")) != 0) {
-		ERR(sh, "genhomedircon returned error code %d.", r);
-		goto cleanup;
-	}
-
 	retval = 0;
 cleanup:
 	free(storepath);
@@ -1070,6 +1065,12 @@
 		goto cleanup;
 	}
 
+	if ((retval = semanage_exec_prog(sh, sh->conf->genhomedircon, sh->conf->store_path, "")) != 0) {
+		ERR(sh, "genhomedircon returned error code %d.", retval);
+		goto cleanup;
+	}
+
+
 cleanup:
 	return retval;
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-15 13:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 22:09 [PATCH] move genhomedircon call out of transaction Chad Sellers
2005-11-14 23:02 ` Ivan Gyurdiev
2005-11-14 23:07   ` Ivan Gyurdiev
2005-11-15  1:10   ` Chad Sellers
2005-11-15  3:22     ` Ivan Gyurdiev
2005-11-15  4:02       ` Ivan Gyurdiev
2005-11-15 13:23 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.