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

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

 



On 09/20/17 18:13, Frédéric Bron wrote:
>> How the output of this?
>>
>> restorecon -F -v /etc/passwd
> Relabeled /etc/passwd from unconfined_u:object_r:passwd_file_t:s0 to
> system_u:object_r:passwd_file_t:s0
>
> So the force option was necessary?

Yes....  But I don't think unconfined_u:object_r:passwd_file_t:s0 would have caused
any issues.

I did the following test....

[root@f26-rc15k etc]# ls -Z passwd
system_u:object_r:passwd_file_t:s0 passwd
[root@f26-rc15k etc]# mv passwd passwd.orig
[root@f26-rc15k etc]# cp passwd.orig passwd
[root@f26-rc15k etc]# ls -Z passwd
unconfined_u:object_r:passwd_file_t:s0 passwd
[root@f26-rc15k etc]# matchpathcon -V passwd
passwd verified.
[root@f26-rc15k etc]# restorecon -F -v passwd
Relabeled /etc/passwd from unconfined_u:object_r:passwd_file_t:s0 to
system_u:object_r:passwd_file_t:s0
[root@f26-rc15k etc]# matchpathcon -V passwd
passwd verified.

So, you can see that in both cases matchpathcon verified the context.


-- 
Fedora Users List - The place to go to speculate endlessly

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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