From: Russell Coker <russell@coker.com.au>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: "SE-Linux" <selinux@tycho.nsa.gov>
Subject: Re: install
Date: Fri, 19 Aug 2011 00:24:15 +1000 [thread overview]
Message-ID: <201108190024.15482.russell@coker.com.au> (raw)
In-Reply-To: <1313674824.21331.21.camel@moss-pluto>
On Thu, 18 Aug 2011, Stephen Smalley <sds@tycho.nsa.gov> wrote:
> Looks like if you give it a relative path as the target, it won't try to
> set the context, because it doesn't apply realpath(), unlike restorecon,
> and matchpathcon() will always fail on a relative path as all of the
> file_contexts pathname regexes begin with a slash. Not sure if that was
> intentional or not.
For the case of Debian package creation an absolute path is the most common
way to do things. I think that Debian package creation alone is a sufficient
reason for changing this (in Debian at least).
> Anyway, how do you address the same issue for the package manager (dpkg
> or rpm)? Is there a way to suppress setting of the security context
> when rpm or dpkg unpacks a package?
dpkg will call matchpathcon() whenever SE Linux is enabled, there doesn't
appear to be a way of disabling this or a good reason for doing so.
A significant portion of the uses of install(1) involve something other than
installing a system file. The case of using install as part of a Debian
package creation process (or some other form of archive creation) either
deliberately or through "make install" is extremely common. Changing tens of
thousands of Makefiles isn't a viable option and having lots of warning
messages isn't a great situation, so it seems that changing install(1) is
required.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
--
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.
next prev parent reply other threads:[~2011-08-18 14:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 12:59 install Russell Coker
2011-08-18 13:40 ` install Stephen Smalley
2011-08-18 14:24 ` Russell Coker [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-22 8:00 Install Raenan Guadez
2013-01-22 11:24 ` Install Julian Calaby
[not found] ` <CAOctcr9+k_9FBJ=bdbYmxEcrHkk8ihYAV20H+qtSmtk7Yv0f+w@mail.gmail.com>
2013-01-23 22:18 ` Install Julian Calaby
2006-10-25 1:41 Install Other Special
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=201108190024.15482.russell@coker.com.au \
--to=russell@coker.com.au \
--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.