From: Daniel J Walsh <dwalsh@redhat.com>
To: Bandan Das <bandan.das@stratus.com>
Cc: selinux <selinux@tycho.nsa.gov>
Subject: Re: genhomedircon errors with NIS
Date: Mon, 20 Apr 2009 15:08:03 -0400 [thread overview]
Message-ID: <49ECC813.5050403@redhat.com> (raw)
In-Reply-To: <1240253643.7743.78.camel@BSD.mno.stratus.com>
On 04/20/2009 02:54 PM, Bandan Das wrote:
> Hello,
>
> This is a RHEL 5.3 system with SELinux configured in the targeted mode.
> Whenever genhomedircon is invoked, either as part of loading a new
> policy module or anything else, genhomedircon will report errors going
> through the NIS database :
>
> bdas homedir /h/bdas or its parent directory conflicts with a
> defined context in /etc/selinux/targeted/contexts/files/file_contexts,
> /usr/sbin/genhomedircon will not create a new context. This usually
> indicates an incorrectly defined system account. If it is a system
> account please make sure its login shell is /sbin/nologin.
>
> /h is where the NIS home directory is automounted and the above message
> appears for all the NIS users.
>
> As expected, running genhomedircon manually with the "-n" switch will
> not spew these messages. If I look at file_contexts, I do not find any
> specified context for /h.
>
>
> Any ideas ?
>
>
>
genhomedircon is trying to label the directory above /h "/" to be
home_root_t. It sees this directory and complains. I think the problem
here is you actually have a user /h. What does the homedir of one of
the users look like?
We have the ability to disable genhomedircon in Fedora 10 and beyond.
--
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:[~2009-04-20 19:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 18:54 genhomedircon errors with NIS Bandan Das
2009-04-20 19:08 ` Daniel J Walsh [this message]
2009-04-20 19:36 ` Bandan Das
2009-04-20 19:50 ` Daniel J Walsh
2009-04-21 9:53 ` Alexey S
2009-04-21 12:00 ` Daniel J Walsh
2009-04-21 18:39 ` Bandan Das
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=49ECC813.5050403@redhat.com \
--to=dwalsh@redhat.com \
--cc=bandan.das@stratus.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.