[PATCH 55/63] libselinux: Don't reinitialize avc_init if it has been

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

 



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


   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6wTOYACgkQrlYvE4MpobPYBwCgi6glnznPYT4tzLsmeAtzzVp6
5JAAoMqVwi6YRGNvkxI1fgkSXM7iq+ck
=jb8j
-----END PGP SIGNATURE-----
>From 150371c1f70d03506b8ef47dbac93c41064b7dcf Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Thu, 20 Oct 2011 15:43:12 -0400
Subject: [PATCH 55/63] libselinux: Don't reinitialize avc_init if it has been
 called previously

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 libselinux/src/avc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libselinux/src/avc.c b/libselinux/src/avc.c
index 74591b4..e7ad31d 100644
--- a/libselinux/src/avc.c
+++ b/libselinux/src/avc.c
@@ -165,6 +165,9 @@ int avc_init(const char *prefix,
 	struct avc_node *new;
 	int i, rc = 0;
 
+	if (avc_running)
+		return 0;
+
 	if (prefix)
 		strncpy(avc_prefix, prefix, AVC_PREFIX_SIZE - 1);
 
-- 
1.7.7


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

  Powered by Linux