[PATCH 19/96] policycoreutils: semodule: support for alternative

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

iEYEARECAAYFAk5D53wACgkQrlYvE4MpobN9mgCfTB3L2+id3xXWAMHYZaTZuDuY
m9sAn14ltdqBg9blWcnbdnhE8FP0o+K5
=ROVZ
-----END PGP SIGNATURE-----
>From 650d18da89492d537bdf1973fd5afb31d2e90a40 Mon Sep 17 00:00:00 2001
From: Eric Paris <eparis@xxxxxxxxxx>
Date: Thu, 7 Jul 2011 15:41:31 +0200
Subject: [PATCH 19/96] policycoreutils: semodule: support for alternative
 root paths

Add a -p option to semodule which will allow it to operate on the
specified semanaged root instead of the default.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/semodule/semodule.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
index 059f629..81d6a3c 100644
--- a/policycoreutils/semodule/semodule.c
+++ b/policycoreutils/semodule/semodule.c
@@ -162,6 +162,7 @@ static void parse_command_line(int argc, char **argv)
 		{"noreload", 0, NULL, 'n'},
 		{"build", 0, NULL, 'B'},
 		{"disable_dontaudit", 0, NULL, 'D'},
+		{"path", required_argument, NULL, 'p'},
 		{NULL, 0, NULL, 0}
 	};
 	int i;
@@ -170,7 +171,7 @@ static void parse_command_line(int argc, char **argv)
 	no_reload = 0;
 	create_store = 0;
 	while ((i =
-		getopt_long(argc, argv, "s:b:hi:lvqe:d:r:u:RnBD", opts,
+		getopt_long(argc, argv, "p:s:b:hi:lvqe:d:r:u:RnBD", opts,
 			    NULL)) != -1) {
 		switch (i) {
 		case 'b':
@@ -198,6 +199,9 @@ static void parse_command_line(int argc, char **argv)
 		case 'r':
 			set_mode(REMOVE_M, optarg);
 			break;
+		case 'p':
+			semanage_set_root(optarg);
+			break;
 		case 'u':
 			set_mode(UPGRADE_M, optarg);
 			break;
-- 
1.7.6

Attachment: 0019-policycoreutils-semodule-support-for-alternative-roo.patch.sig
Description: PGP signature


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

  Powered by Linux