All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Walsh <dwalsh@redhat.com>
To: sds@tycho.nsa.gov, eparis@redhat.com
Cc: selinux@tycho.nsa.gov, Dan Walsh <dwalsh@redhat.com>
Subject: [PATCH 08/08] Add message to tell user to install sandbox policy package.
Date: Fri,  8 Nov 2013 08:17:35 -0500	[thread overview]
Message-ID: <1383916655-9354-9-git-send-email-dwalsh@redhat.com> (raw)
In-Reply-To: <1383916655-9354-1-git-send-email-dwalsh@redhat.com>

Sandbox policy is huge do to macro expansion.  We do not install this by default
but sandbox command can fail without it installed.  This patch prints a message to the
user to install the package.

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
---
 policycoreutils/sandbox/sandbox | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policycoreutils/sandbox/sandbox b/policycoreutils/sandbox/sandbox
index fb5a24c..3668abe 100644
--- a/policycoreutils/sandbox/sandbox
+++ b/policycoreutils/sandbox/sandbox
@@ -356,7 +356,7 @@ sandbox [-h] [-c] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile
                try:
                       sepolicy.info(sepolicy.TYPE, "sandbox_t")
                except RuntimeError:
-                      raise ValueError(_("Sandbox Policy is currently disabled.\nYou need to enable the policy by executing the following as root\n# semodule -e sandbox"))
+                      raise ValueError(_("Sandbox Policy is not currently installed.\nYou need to install the selinux-policy-sandbox package in order to run this command"))
                
         if self.__options.setype:
                self.setype = self.__options.setype
-- 
1.8.4.2


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  parent reply	other threads:[~2013-11-08 13:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08 13:17 Current upstreamable patch set from Fedora Dan Walsh
2013-11-08 13:17 ` [PATCH 01/08] Call proper dbus function Dan Walsh
2013-11-08 13:17 ` [PATCH 02/08] Only return writeable files that are enabled Dan Walsh
2013-11-08 13:17 ` [PATCH 03/08] Add domain to short list of domains, when -t and -d used together Dan Walsh
2013-11-08 13:17 ` [PATCH 04/08] Fix up desktop files to match current standards Dan Walsh
2013-11-08 13:17 ` [PATCH 05/08] Add support to return sesitivities and cats for python bindings Dan Walsh
2013-11-08 13:17 ` [PATCH 07/08] Cleanup whitespace Dan Walsh
2013-11-08 13:17 ` Dan Walsh [this message]
2013-11-08 21:10   ` [PATCH 08/08] Add message to tell user to install sandbox policy package Stephen Smalley
2013-11-08 22:36     ` Daniel J Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1383916655-9354-9-git-send-email-dwalsh@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=eparis@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.