All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karsten Wade <kwade@redhat.com>
To: SELinux <SELinux@tycho.nsa.gov>
Subject: Re: Proposed change to install
Date: Tue, 28 Dec 2004 07:13:47 -0800	[thread overview]
Message-ID: <1104246827.4370.6.camel@erato.phig.org> (raw)
In-Reply-To: <1104158005.15615.84.camel@moss-spartans.epoch.ncsc.mil>

On Mon, 2004-12-27 at 09:33 -0500, Stephen Smalley wrote:
> On Mon, 2004-12-27 at 08:36, Daniel J Walsh wrote:
> > But with install, I believe 
> > matchpathcon is required.  So I am have modified the patch in coreutils 
> > to call matchpathcon and setfilecon.  This function currently will fail 
> > silently, leaving the current behavior.  Do you think this should report 
> > errors?
> 
> Likely not, if it is the default behavior, as the caller may not have
> permission to relabel files at all or to the particular context. 
> Definitely not for errno == EOPNOTSUPP, i.e. filesystems that do not
> support the security xattr.

OTOH, not having some error to work with makes it more difficult to
troubleshoot, in the case where labeling is desired but the user doesn't
have permission to label.  Something that conveys this:

"Error - labeling the file(s) foo, bar, baz failed.  Either SELinux is
not installed, is not an option, or you do not have permissions to
label.  If you think this is an error, contact your system
administrator."

- Karsten
-- 
Karsten Wade, RHCE, Sr. Tech Writer
a lemon is just a melon in disguise
http://people.redhat.com/kwade/
gpg fingerprint: 2680 DBFD D968 3141 0115  5F1B D992 0E06 AD0E 0C41


--
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:[~2004-12-28 15:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-27 13:36 Proposed change to install Daniel J Walsh
2004-12-27 14:33 ` Stephen Smalley
2004-12-28 15:13   ` Karsten Wade [this message]
2004-12-28 15:59     ` Stephen Smalley
2004-12-28 18:10   ` Daniel J Walsh
2004-12-28 18:43     ` Stephen Smalley
2004-12-28 18:59   ` Stephen Smalley

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=1104246827.4370.6.camel@erato.phig.org \
    --to=kwade@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.