[Spacewalk-list] FW: RHEL Patching Scenario
Maria Iano
maria at purplecoffee.com
Wed Sep 11 14:29:15 UTC 2013
On Wed, Sep 11, 2013 at 08:38:44PM +0800, Jan Pazdziora wrote:
> On Wed, Sep 11, 2013 at 12:21:59PM +0200, Milan Zázrivec wrote:
> > On Wednesday, September 11, 2013 03:36:50 PM Chirag Choudhary wrote:
> > > Hi Milan,
> > > Those files need to be labeled with spacewalk_data_t .
> > > What does this mean ?
> >
> > The SELinux label of those files.
> >
> > > Do I change the owner to spacewalk_data_t ?
> >
> > Not the owner. SELinux context (visible with ls -Z for example).
> >
> > You can use chcon -t spacewalk_data_t ... to set the context.
>
> Beware, it will not survive restorecon. I recommend semanage fcontext.
>
The command you need to use is:
semanage fcontext -a -t spacewalk_data_t /var/distro-trees(/.*)?
it may take a while to complete. Aftwards run:
fixfiles restore /var/distro-trees
You can check it worked by typing "ls -Z /var/distro-trees" and it
should look something like this:
drwxr-xr-x apache root root:object_r:spacewalk_data_t
/var/distro-trees/rhel6-64
don't worry about the "root:object_r:" part, you just need the third
part to be spacewalk_data_t
Maria
More information about the Spacewalk-list
mailing list