mkfs.f2fs: avoid selinux denial for unnecessary sysfs node
PATCH 1/1 mkfs.f2fs: avoid selinux denial for unnecessary sysfs node
This avoids unnecessary sysfs node access causing selinux denial.
Signed-off-by Jaegeuk Kim <[email protected]>
--- lib/libf2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libf2fs.c +1 -1
@@ -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
Quoted 3 lines · Jaegeuk Kim
This avoids unnecessary sysfs node access causing selinux denial.
Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot