[RHEL7]How to backup/restore files/directories with ACL, capability and SELinux context.

Solution Verified - Updated -

Issue

  • After a backup followed by a subsequent restore operation using Relax-and-Recover or tar commands, the ping command can't be executed by a normal user. The restored ping command is missing a capability.
  • After a backup followed by a subsequent restore operation using Relax-and-Recover, tar, etc, some files or directories have a different SELinux context. How can I prevent that from occurring?

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content