[Top][All Lists]

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

Re: cp and SELinux context

From: Bruno Haible
Subject: Re: cp and SELinux context
Date: Tue, 3 Jun 2008 15:45:54 +0200
User-agent: KMail/1.9.1

Jim Meyering wrote:
> >       --preserve[=ATTR_LIST]   preserve the specified attributes (default:
> >                                  mode,ownership,timestamps), if possible
> >                                  additional attributes: context, links, all
> ... it's the SELinux context,

Why does the default list of preserved attributes (mode,ownership,timestamps)
not include the SELinux context?

The SELinux FAQ [1] states that
  "When backing up and recovering files with a SELinux system, care must be
   taken to preserve SELinux context information."

Naïvely, I would think this rule should also hold when copying file trees
as root using "cp -p"?


[1] http://www.crypt.gen.nz/selinux/faq.html#GA.10

reply via email to

[Prev in Thread] Current Thread [Next in Thread]