-----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/ iEYEARECAAYFAk5Wsu0ACgkQrlYvE4MpobMh4gCfX1vlFSK0xZawEzIuDWsLIAfD LaEAn0iM5cjDI0uWzB9Sef4aIQXUMo2O =p9f2 -----END PGP SIGNATURE-----
>From f00f98ce7cebcab4c3e5cb2e0c28e5fa2385b20a Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Wed, 3 Aug 2011 16:23:12 -0400 Subject: [PATCH 45/77] policycoreutils: sandbox: move seunshare globals to the top Just coding style, globals go at the top of .c files, not randomly throughout. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- policycoreutils/sandbox/seunshare.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/policycoreutils/sandbox/seunshare.c b/policycoreutils/sandbox/seunshare.c index 252c705..dabe998 100644 --- a/policycoreutils/sandbox/seunshare.c +++ b/policycoreutils/sandbox/seunshare.c @@ -39,6 +39,11 @@ #define MS_PRIVATE 1<<18 #endif +#define DEFAULT_PATH "/usr/bin:/bin" +#define USAGE_STRING _("USAGE: seunshare [ -v ] [ -t tmpdir ] [ -h homedir ] -- CONTEXT executable [args] ") + +static int verbose = 0; + /** * This function will drop all capabilities * Returns zero on success, non-zero otherwise @@ -57,9 +62,6 @@ static int drop_capabilities(uid_t uid) return capng_apply(CAPNG_SELECT_BOTH); } -#define DEFAULT_PATH "/usr/bin:/bin" -static int verbose = 0; - /** * Take care of any signal setup. */ @@ -153,8 +155,6 @@ static int seunshare_mount(const char *src, const char *dst, struct passwd *pwd) return -1; } -#define USAGE_STRING _("USAGE: seunshare [ -v ] [ -t tmpdir ] [ -h homedir ] -- CONTEXT executable [args] ") - int main(int argc, char **argv) { int rc; int status = -1; -- 1.7.6