diff --git a/policycoreutils/setfiles/setfiles.c b/policycoreutils/setfiles/setfiles.c index 8f4f663..27d52b1 100644 --- a/policycoreutils/setfiles/setfiles.c +++ b/policycoreutils/setfiles/setfiles.c @@ -186,14 +186,17 @@ static void exclude_non_seclabel_mounts() item = strtok(mount_info[3], ","); while (item != NULL) { + if (strcmp(item, "ro") == 0) { + found = 0; + break; + } if (strcmp(item, "seclabel") == 0) { found = 1; - break; } item = strtok(NULL, ","); } - /* exclude mount points without the seclabel option */ + /* exclude ro mount points and those without the seclabel option */ if (!found) add_exclude(mount_info[1]); }