All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Xavier Toth <txtoth@gmail.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: HOME_DIR in .fc works?
Date: Thu, 25 Oct 2007 11:10:42 -0400	[thread overview]
Message-ID: <4720B1F2.9040000@redhat.com> (raw)
In-Reply-To: <cadfc0e40710250806o514cab07w264f641e53d2b102@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xavier Toth wrote:
> On RHEL5 genhomedircon is not processing my fc entries because they
> are specifying "<<none>>" for the context. In the getHomeDirContext
> function there is a call to security_check_context which fails for
> "<<none>>" so the substituted string is not appended to the output.
> Maybe this check should be something like:
> if selinux.security_check_context(scon) == 0 or scon == "<<none>>":
> 
> 
> On 10/24/07, Xavier Toth <txtoth@gmail.com> wrote:
>> I'm getting the impression that genhomedircon is involved with the
>> solution to my problem. Maybe you can't use HOME_DIR in a policy
>> module? If I can then maybe I need to run genhomedircon to get
>> homedir_templates processed into file_contexts.homedirs?
>>
>> On 10/24/07, Ted X Toth <txtoth@gmail.com> wrote:
>>> I put entries into an .fc file to not relabel polyinstantied instance
>>> directories but they get relabeled, am I doing it right:
>>> HOME_DIR/\.mlrc\.inst/.*   <<none>>
>>>
>>> I don't see anything about this directory when I do:
>>> /usr/sbin/semanage fcontext -l | grep mlrc
>>>
>>> I do see them in /etc/selinux/mls/contexts/files/homedir_templates.
>>>
Seems reasonable.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHILHxrlYvE4MpobMRArgPAJ9lFBhv9VHRroSQ6OzrnFZAqOqCRQCguy1z
LP3oCDbEqvZlF7G5iXCA79g=
=VUfA
-----END PGP SIGNATURE-----

--
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:[~2007-10-25 15:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 16:02 HOME_DIR in .fc works? Ted X Toth
2007-10-24 18:43 ` Xavier Toth
2007-10-25 15:06   ` Xavier Toth
2007-10-25 15:10     ` Daniel J Walsh [this message]

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=4720B1F2.9040000@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=txtoth@gmail.com \
    /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.