X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=contents.c;h=1e5361eeacd3e0b8f1ac715551d998d07cf1e06e;hp=bfdb657528712f52e14c85ee1074a8c5d64010fa;hb=484903e4332be6c317f531b008cb2a841a18c506;hpb=c657f39e1660dae17422b07fcf9f138bcf85bfbc diff --git a/contents.c b/contents.c index bfdb657..1e5361e 100644 --- a/contents.c +++ b/contents.c @@ -18,26 +18,17 @@ #include #include -#ifdef HAVE_ANDROID_OS -#include -#else #include -#endif #define XATTR_SELINUX_SUFFIX "selinux" #define XATTR_CAPS_SUFFIX "capability" #include "ext4_utils.h" -#include "make_ext4fs.h" #include "allocate.h" #include "contents.h" #include "extent.h" #include "indirect.h" -#ifdef USE_MINGW -#define S_IFLNK 0 /* used by make_link, not needed under mingw */ -#endif - static struct block_allocation* saved_allocation_head = NULL; struct block_allocation* get_saved_allocation_chain() { @@ -497,15 +488,6 @@ static int xattr_add(u32 inode_num, int name_index, const char *name, return result; } -int inode_set_selinux(u32 inode_num, const char *secon) -{ - if (!secon) - return 0; - - return xattr_add(inode_num, EXT4_XATTR_INDEX_SECURITY, - XATTR_SELINUX_SUFFIX, secon, strlen(secon) + 1); -} - int inode_set_capabilities(u32 inode_num, uint64_t capabilities) { if (capabilities == 0) return 0;