Re: Problem with SELinux: cannot change password, cannot open Plasma session

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

 



On Wed, Sep 20, 2017 at 05:54:19PM +0800, Ed Greshko wrote:
> On 09/20/17 17:33, Frédéric Bron wrote:
> >> ls -Zd /etc
> > system_u:object_r:etc_t:s0 /etc/
> >
> > looks fine?
> >
> 
> Yes, perfectly fine...
> 
> How the output of this?
> 
> restorecon -F -v /etc/passwd
> 
> FWIW, looking in /etc/selinux/targeted/contexts/files/file_contexts I see....
> 
> /etc/passwd[-\+]?       --      system_u:object_r:passwd_file_t:s0
> 
> But, at the moment I don't know the significance of  [-\+]?  at the end.
> 
I suspect it is an extended RE.  The "[-\+]" would be a character class
that includes "-", "\", and "+".  the "?" makes it optional.  I.e. the
name "/etc/passwd" matches with one of the three characters after
the "d" or without any character after the "d".

jl
-- 
Jon H. LaBadie                  jonfu@xxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux