All of lore.kernel.org
 help / color / mirror / Atom feed
* Critical bug in semanage
@ 2008-07-17 18:47 Daniel J Walsh
  2008-07-18 15:36 ` Joshua Brindle
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel J Walsh @ 2008-07-17 18:47 UTC (permalink / raw)
  To: SE Linux

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

homedirs in /var and /usr/local were not being matched, causing bad
context to be added.

genhomedircon port problem.

An extra / at the end of the regex was causing the problem

Geesh I love 'C'.  :^P
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkh/k8IACgkQrlYvE4MpobPojgCggaXEFTVV+JdunE/jLOjhiTff
+E4AoOSIYWVPVlRJ2w7LAo7ewCmt/+KY
=xb2w
-----END PGP SIGNATURE-----

[-- Attachment #2: libsemanage-rhat.patch --]
[-- Type: text/plain, Size: 500 bytes --]

diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.25/src/genhomedircon.c
--- nsalibsemanage/src/genhomedircon.c	2008-06-12 23:25:16.000000000 -0400
+++ libsemanage-2.0.25/src/genhomedircon.c	2008-07-17 14:32:45.000000000 -0400
@@ -192,6 +193,11 @@
 			goto done;
 	}
 
+	if (ustr_cmp_suffix_cstr_eq(expr, "/")) {
+		if (!ustr_del(&expr, 1))
+			goto done;
+	}
+
 	/* Append pattern to eat up trailing slashes */
 	if (!ustr_add_cstr(&expr, "/*$"))
 		goto done;

[-- Attachment #3: libsemanage-rhat.patch.sig --]
[-- Type: application/octet-stream, Size: 72 bytes --]

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

end of thread, other threads:[~2008-07-29 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-17 18:47 Critical bug in semanage Daniel J Walsh
2008-07-18 15:36 ` Joshua Brindle
2008-07-18 17:30   ` Stephen Smalley
2008-07-18 17:33     ` Daniel J Walsh
2008-07-21 17:41     ` Setting login context for multiple Linux users using single semanage command Hasan Rezaul-CHR010
2008-07-22  2:08       ` Stephen Smalley
2008-07-29 13:33         ` Daniel J Walsh

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.