On 09/20/17 14:14, Frédéric Bron wrote:
> What is the label for /etc/passwd and /etc/shadow, this may be
unrelated but
> I have experienced a similar issue and the /etc/shadow was not labelled
> correctly by SELinux.
after relabeling I have:
# ls -Z /etc/{passwd,shadow}
unconfined_u:object_r:passwd_file_t:s0 /etc/passwd
unconfined_u:object_r:shadow_t:s0 /etc/shadow
This is strange because on another F26 computer, I have that:
system_u:object_r:passwd_file_t:s0 /etc/passwd
system_u:object_r:shadow_t:s0 /etc/shadow
I just performed an "autorelabel" on an F26 VM and did not have this
experience.
Those files remained properly labeled.
A few questions....
1. Is the file /.autorelabel gone? It should be, after a relabel.
2. Do you happen to know what the labels were previously?
3. If you do a "restorecon /etc/passwd" is the label then correct?
--
Fedora Users List - The place to go to speculate endlessly