Skip to contentSkip to conversation

mkfs.f2fs: avoid selinux denial for unnecessary sysfs node

PATCH In review Jaegeuk Kim 2 participants 2 messages May 1, 2018 – May 4, 2018 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.f2fs: avoid selinux denial for unnecessary sysfs node

This avoids unnecessary sysfs node access causing selinux denial.

---
 lib/libf2fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libf2fs.c +1 -1
index 05b026b..69cf98b 100644
@@ -533,7 +533,7 @@ __u32 f2fs_inode_chksum(struct f2fs_node *node)
  */
 const char *get_rootdev()
 {
-#ifdef ANDROID_WINDOWS_HOST
+#if defined(ANDROID_WINDOWS_HOST) || defined(WITH_ANDROID)
 	return NULL;
 #else
 	struct stat sb;
Signature · 6 lines
2.17.0.484.g0c8726318c-goog


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot