All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominick Grift <dac.override@gmail.com>
To: selinux@tycho.nsa.gov
Subject: Re: Cannot write policy to allow { relabelto }
Date: Tue, 18 Apr 2017 14:11:38 +0200	[thread overview]
Message-ID: <20170418121138.GF26339@markus> (raw)
In-Reply-To: <20170418121016.GE26339@markus>

[-- Attachment #1: Type: text/plain, Size: 2172 bytes --]

On Tue, Apr 18, 2017 at 02:10:16PM +0200, Dominick Grift wrote:
> On Tue, Apr 18, 2017 at 07:03:23AM -0500, Ian Pilcher wrote:
> > On 04/18/2017 01:15 AM, Dominick Grift wrote:
> > > acme_nss_t needs to be associate with "can_change_object_identity" to
> > > be able to change the object identity from system_u to unconfined_u
> > > 
> > > typeattribute acme_nss_t can_change_object_identity;
> > > 
> > > or the appropriate macro:
> > > 
> > > domain_obj_id_change_exemption(acme_nss_t)
> > 
> > Excellent, thank you!
> > 
> > > 
> > > But there is no need to change the object identity in the first
> > > place, system_u will do fine.
> > 
> > I'll have to think about this.  I'm actually copying a directory tree
> > from one place to another and copying the context from the source to
> > destination with getfilecon() and setfilecon().
> 
> If you would be using getfilecon() then you would, most likely, not end up with unconfined_u as the identity

if there is a getfilecon_default() then try that instead of getfilecon()

> 
> where are you copying that object to? There should be no content with type "cert_t" in a user home directory
> 
> > 
> > What APIs should I use if I *only* wanted to copy the type?
> > 
> > -- 
> > ========================================================================
> > Ian Pilcher                                         arequipeno@gmail.com
> > -------- "I grew up before Mark Zuckerberg invented friendship" --------
> > ========================================================================
> > _______________________________________________
> > Selinux mailing list
> > Selinux@tycho.nsa.gov
> > To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> > To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
> 
> -- 
> Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
> https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
> Dominick Grift



-- 
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2017-04-18 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 22:02 Cannot write policy to allow { relabelto } Ian Pilcher
2017-04-18  6:15 ` Dominick Grift
2017-04-18 12:03   ` Ian Pilcher
2017-04-18 12:10     ` Dominick Grift
2017-04-18 12:11       ` Dominick Grift [this message]
2017-04-18 13:26       ` Ian Pilcher
2017-04-18 14:07         ` Dominick Grift

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=20170418121138.GF26339@markus \
    --to=dac.override@gmail.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.