From 874136434a6ef13dffec9c6c8c136d2424a32c33 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 17 Jan 2017 21:14:46 -0600 Subject: SELinux can be assumed for Android 4.4+ Change-Id: I7410a0c8e439eec90a955ee9201efd9a92bb9635 --- libtar/extract.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libtar/extract.c') diff --git a/libtar/extract.c b/libtar/extract.c index 9e24e8ee7..87ccf245f 100644 --- a/libtar/extract.c +++ b/libtar/extract.c @@ -32,9 +32,7 @@ # include #endif -#ifdef HAVE_SELINUX -# include "selinux/selinux.h" -#endif +#include #ifdef HAVE_EXT4_CRYPT # include "ext4crypt_tar.h" @@ -159,7 +157,6 @@ tar_extract_file(TAR *t, const char *realname, const char *prefix, const int *pr return i; } -#ifdef HAVE_SELINUX if((t->options & TAR_STORE_SELINUX) && t->th_buf.selinux_context != NULL) { #ifdef DEBUG @@ -168,7 +165,6 @@ tar_extract_file(TAR *t, const char *realname, const char *prefix, const int *pr if (lsetfilecon(realname, t->th_buf.selinux_context) < 0) fprintf(stderr, "tar_extract_file(): failed to restore SELinux context %s to file %s !!!\n", t->th_buf.selinux_context, realname); } -#endif if((t->options & TAR_STORE_POSIX_CAP) && t->th_buf.has_cap_data) { -- cgit v1.2.3