All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sutton, Harry (GSE)" <harry.sutton@hp.com>
To: Eric Paris <eparis@redhat.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: semanage: should -a imply -m?
Date: Sat, 29 Sep 2012 08:39:09 -0400	[thread overview]
Message-ID: <5066EBED.3060609@hp.com> (raw)
In-Reply-To: <1348859914.2845.4.camel@localhost>

On 09/28/2012 03:18 PM, Eric Paris wrote:
> What do others think about this?  Should we cause -a to act like -m or
> should it abort?  Should we force the -a ->  -m logic up to the caller?
> I guess I'm fine with either.  Is semanage -a enough like semodule -i
> and -m like -u that this would actually be expected behavior?
>
I'm inclined to think it should be the other way around, that is, -m 
should act like -a.

If you create a new rule using semanage -a that differs in multiple but 
potentially subtle ways from an existing entry you are unaware of, the 
result may not be at all what you wanted; in that case, the user should 
be warned that the record already exists. Maybe a compromise, to improve 
usability, would be to test for single vs multiple changes before 
throwing an error.

     /Harry

--
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.

  reply	other threads:[~2012-09-29 12:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 19:18 semanage: should -a imply -m? Eric Paris
2012-09-29 12:39 ` Sutton, Harry (GSE) [this message]
2012-10-01  9:22   ` 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=5066EBED.3060609@hp.com \
    --to=harry.sutton@hp.com \
    --cc=eparis@redhat.com \
    --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.