* [PATCH] mkfs.f2fs: avoid selinux denial for unnecessary sysfs node
@ 2018-05-01 2:44 Jaegeuk Kim
2018-05-04 10:06 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Jaegeuk Kim @ 2018-05-01 2:44 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
This avoids unnecessary sysfs node access causing selinux denial.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
lib/libf2fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index 05b026b..69cf98b 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -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;
--
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-04 10:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-01 2:44 [PATCH] mkfs.f2fs: avoid selinux denial for unnecessary sysfs node Jaegeuk Kim
2018-05-04 10:06 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).