[PATCH 31/48] policycoreutils: sandbox: init script run twice is

[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/

iEYEARECAAYFAk7dHNsACgkQrlYvE4MpobPgCQCeMrQ98wPjg2nczbyL7aPleoGG
IfgAoOHTXXfDB1o1e/he/tbbYRsgsNER
=85Iz
-----END PGP SIGNATURE-----
>From 5ae8a41e7c08159072ab81254e421e93cb8f6534 Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Thu, 10 Nov 2011 12:16:07 -0500
Subject: [PATCH 31/48] policycoreutils: sandbox: init script run twice is
 still successful

If sandbox init script is run multiple times to start it should still
return 0 rather than an error.  Things should still be set up.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/sandbox/sandbox.init |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/policycoreutils/sandbox/sandbox.init b/policycoreutils/sandbox/sandbox.init
index 11c391c..b3979bf 100644
--- a/policycoreutils/sandbox/sandbox.init
+++ b/policycoreutils/sandbox/sandbox.init
@@ -28,7 +28,7 @@ base=${0##*/}
 start() {
 	echo -n "Starting sandbox"
 
-	[ -f "$LOCKFILE" ] && return 1
+	[ -f "$LOCKFILE" ] && return 0
 
 	touch $LOCKFILE
 	mount --make-rshared / || return $? 
-- 
1.7.7.4


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

  Powered by Linux