X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=contents.c;h=1cde871e898bdffe65044c180369ab6960bb8b19;hp=bfdb657528712f52e14c85ee1074a8c5d64010fa;hb=d8400e132c67a993248d25fd9026dcc5ffedc96c;hpb=c657f39e1660dae17422b07fcf9f138bcf85bfbc;ds=sidebyside diff --git a/contents.c b/contents.c index bfdb657..1cde871 100644 --- a/contents.c +++ b/contents.c @@ -18,11 +18,7 @@ #include #include -#ifdef HAVE_ANDROID_OS -#include -#else #include -#endif #define XATTR_SELINUX_SUFFIX "selinux" #define XATTR_CAPS_SUFFIX "capability" @@ -34,10 +30,6 @@ #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 +489,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;