From 3d356da4654b5ae9eb2207f824555f0219687763 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 24 May 2020 17:22:22 +0200 Subject: [PATCH 08/10] Allow mismatches of exfat genfscon --- libsepol/cil/src/cil_post.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsepol/cil/src/cil_post.c b/libsepol/cil/src/cil_post.c index 68c0318e..75e5128c 100644 --- a/libsepol/cil/src/cil_post.c +++ b/libsepol/cil/src/cil_post.c @@ -488,6 +488,10 @@ int cil_post_genfscon_context_compare(const void *a, const void *b) */ if(strcmp(a_genfscon->path_str, "/devices/virtual/block/") == 0) bypass = 1; + if(strcmp(a_genfscon->fs_str, "exfat") == 0 || strcmp(a_genfscon->fs_str, "esdfs") == 0) { + if(strcmp(a_genfscon->path_str, "/") == 0) + bypass = 1; + } if(bypass == 1) { fprintf(stderr, "Received conflicting %s vs %s but ignore\n", a_genfscon->path_str, b_genfscon->path_str); return 0; -- 2.17.1