Re: Copying files without losing selinux context

2015-10-11 Thread Suvayu Ali
On Sun, Oct 11, 2015 at 07:17:59AM -0400, Daniel J Walsh wrote: > On 10/10/2015 05:07 AM, Suvayu Ali wrote: > > On Sat, Oct 10, 2015 at 12:31:59PM +0530, Rejy M Cyriac wrote: > > > >> The following would have retained the SELinux contexts > >> > >> rsync with the --xattrs option > >> tar with the -

Re: Copying files without losing selinux context

2015-10-11 Thread Daniel J Walsh
On 10/10/2015 05:07 AM, Suvayu Ali wrote: > Hi Rejy, > > On Sat, Oct 10, 2015 at 12:31:59PM +0530, Rejy M Cyriac wrote: >> On 10/08/2015 06:35 PM, Suvayu Ali wrote: >>> Yesterday I installed a new SSD in my laptop. I moved all my files >>> (/home, /var, /opt) with rsync and rebooted. However I

Re: Copying files without losing selinux context

2015-10-10 Thread Suvayu Ali
Hi Rejy, On Sat, Oct 10, 2015 at 12:31:59PM +0530, Rejy M Cyriac wrote: > On 10/08/2015 06:35 PM, Suvayu Ali wrote: > > > > Yesterday I installed a new SSD in my laptop. I moved all my files > > (/home, /var, /opt) with rsync and rebooted. However I see the selinux > > filecontexts are wrong, a

Re: Copying files without losing selinux context

2015-10-10 Thread Rejy M Cyriac
On 10/08/2015 06:35 PM, Suvayu Ali wrote: > Hi, > > Yesterday I installed a new SSD in my laptop. I moved all my files > (/home, /var, /opt) with rsync and rebooted. However I see the selinux > filecontexts are wrong, and many services are failing because of that, > e.g. the user crontab doesn't

Copying files without losing selinux context

2015-10-08 Thread Suvayu Ali
Hi, Yesterday I installed a new SSD in my laptop. I moved all my files (/home, /var, /opt) with rsync and rebooted. However I see the selinux filecontexts are wrong, and many services are failing because of that, e.g. the user crontab doesn't load. # ls -Z /var/spool/cron/user unconfined_u: