Merge "Move selinux dependencies out of header files." am: 8124750

am: dc91161

* commit 'dc91161a56c74bb6c73560d728d92b115f0f6e75':
  Move selinux dependencies out of header files.

Change-Id: I439d352c9366dbed201a5592059b886968324633
This commit is contained in:
Elliott Hughes
2016-04-02 16:06:57 +00:00
committed by android-build-merger
8 changed files with 18 additions and 11 deletions
+4 -1
View File
@@ -14,6 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#include "DirUtil.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@@ -26,7 +28,8 @@
#include <string> #include <string>
#include "DirUtil.h" #include <selinux/label.h>
#include <selinux/selinux.h>
typedef enum { DMISSING, DDIR, DILLEGAL } DirStatus; typedef enum { DMISSING, DDIR, DILLEGAL } DirStatus;
+1 -2
View File
@@ -24,8 +24,7 @@
extern "C" { extern "C" {
#endif #endif
#include <selinux/selinux.h> struct selabel_handle;
#include <selinux/label.h>
/* Like "mkdir -p", try to guarantee that all directories /* Like "mkdir -p", try to guarantee that all directories
* specified in path are present, creating as many directories * specified in path are present, creating as many directories
+3
View File
@@ -23,6 +23,9 @@
#undef NDEBUG // do this after including Log.h #undef NDEBUG // do this after including Log.h
#include <assert.h> #include <assert.h>
#include <selinux/label.h>
#include <selinux/selinux.h>
#define SORT_ENTRIES 1 #define SORT_ENTRIES 1
/* /*
+1 -2
View File
@@ -18,8 +18,7 @@
extern "C" { extern "C" {
#endif #endif
#include <selinux/selinux.h> struct selabel_handle;
#include <selinux/label.h>
/* /*
* One entry in the Zip archive. Treat this as opaque -- use accessors below. * One entry in the Zip archive. Treat this as opaque -- use accessors below.
+3 -2
View File
@@ -41,10 +41,11 @@
#include <android-base/stringprintf.h> #include <android-base/stringprintf.h>
#include <cutils/android_reboot.h> #include <cutils/android_reboot.h>
#include <cutils/properties.h> #include <cutils/properties.h>
#include <healthd/BatteryMonitor.h>
#include <log/logger.h> /* Android Log packet format */ #include <log/logger.h> /* Android Log packet format */
#include <private/android_logger.h> /* private pmsg functions */ #include <private/android_logger.h> /* private pmsg functions */
#include <selinux/label.h>
#include <healthd/BatteryMonitor.h> #include <selinux/selinux.h>
#include "adb_install.h" #include "adb_install.h"
#include "bootloader.h" #include "bootloader.h"
+2 -1
View File
@@ -27,7 +27,6 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <selinux/selinux.h>
#include <ftw.h> #include <ftw.h>
#include <sys/capability.h> #include <sys/capability.h>
#include <sys/xattr.h> #include <sys/xattr.h>
@@ -40,6 +39,8 @@
#include <android-base/parseint.h> #include <android-base/parseint.h>
#include <android-base/strings.h> #include <android-base/strings.h>
#include <android-base/stringprintf.h> #include <android-base/stringprintf.h>
#include <selinux/label.h>
#include <selinux/selinux.h>
#include "bootloader.h" #include "bootloader.h"
#include "applypatch/applypatch.h" #include "applypatch/applypatch.h"
+3
View File
@@ -27,6 +27,9 @@
#include "minzip/SysUtil.h" #include "minzip/SysUtil.h"
#include "config.h" #include "config.h"
#include <selinux/label.h>
#include <selinux/selinux.h>
// Generated by the makefile, this function defines the // Generated by the makefile, this function defines the
// RegisterDeviceExtensions() function, which calls all the // RegisterDeviceExtensions() function, which calls all the
// registration functions for device-specific extensions. // registration functions for device-specific extensions.
+1 -3
View File
@@ -20,9 +20,6 @@
#include <stdio.h> #include <stdio.h>
#include "minzip/Zip.h" #include "minzip/Zip.h"
#include <selinux/selinux.h>
#include <selinux/label.h>
typedef struct { typedef struct {
FILE* cmd_pipe; FILE* cmd_pipe;
ZipArchive* package_zip; ZipArchive* package_zip;
@@ -32,6 +29,7 @@ typedef struct {
size_t package_zip_len; size_t package_zip_len;
} UpdaterInfo; } UpdaterInfo;
struct selabel_handle;
extern struct selabel_handle *sehandle; extern struct selabel_handle *sehandle;
#endif #endif