Re: What's wrong with this usage of semanage fcontext?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 23, 2023 at 08:05:13AM -0500, Stephen Smalley wrote:
> On Wed, Feb 22, 2023 at 4:00 PM Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> >
> > To anyone who can provide some advice: I'd like to know what's going
> > wrong here.
> >
> > ------------------------------------------------------------
> > # semanage fcontext -a -e /home '/mnt/export/share./home'
> > # semanage fcontext -l -C
> > ...
> > SELinux Local fcontext Equivalence
> >
> > /mnt/export/share./home = /home
> > # restorecon -v -r /mnt/export/share4/home
> > Warning no default label for /mnt/export/share4/home
> > ------------------------------------------------------------
> >
> > Shouldn't /mnt/export/share4/home match the PCRE '/mnt/export/share./home'?
> > Why does restorecon say there's no default label?
> 
> I could be wrong but I think the equivalence aka substitution only
> works for fixed strings, not regexes (at least wrt the source/original
> path).

That was it!  Thanks.

Alan Stern



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux