Re: [CentOS] SELinux relabeling for a diffeerernt mount point

2022-04-01 Thread Leon Fauster via CentOS

Am 01.04.22 um 04:03 schrieb Kenneth Porter:
I'm preparing a disk mounted at /mnt/tmp to later be mounted at 
/var/lib/BackupPC. Is there some magic invocation to get the selinux 
labels for the structure I create to assume the final mount point, so 
that I don't have to relabel it when it's finally mounted at its target 
location? Or is there an argument to restorecon that will do the 
equivalent of chroot so that restorecon assumes the final location?




Check

$ man semanage-fcontext

for the "equal" switch.

--
Leon

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] SELinux relabeling for a diffeerernt mount point

2022-03-31 Thread Kenneth Porter
I'm preparing a disk mounted at /mnt/tmp to later be mounted at 
/var/lib/BackupPC. Is there some magic invocation to get the selinux labels 
for the structure I create to assume the final mount point, so that I don't 
have to relabel it when it's finally mounted at its target location? Or is 
there an argument to restorecon that will do the equivalent of chroot so 
that restorecon assumes the final location?


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos