From 25fd68d0989254bdf921bcd118c4bae4d8afc419 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Tue, 27 Aug 2013 03:10:10 +0200 Subject: libtar: store SELinux file context in tar archives * Using RedHat's "RHT.security.selinux=" tag in extended tar header (type 'x') Signed-off-by: Vojtech Bocek Change-Id: I102e492e4fa5b8a08fae4d34eb36386862509b4d --- libtar/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtar/compat.h') diff --git a/libtar/compat.h b/libtar/compat.h index 70ac2f435..d0862943b 100644 --- a/libtar/compat.h +++ b/libtar/compat.h @@ -12,6 +12,10 @@ # include #endif +#ifdef HAVE_SELINUX +#include "selinux/selinux.h" +#endif + #if defined(NEED_BASENAME) && !defined(HAVE_BASENAME) -- cgit v1.2.3