File util-linux-libmount-pseudofs.patch of Package util-linux.12022

From 89342e0406209f195bf7a1a5396ac74c16470ac6 Mon Sep 17 00:00:00 2001
From: Stanislav Brabec <sbrabec@suse.cz>
Date: Thu, 28 Feb 2019 23:09:40 +0100
Subject: [PATCH] libmount: Recognize more fuse filesystems as pseudofs and
 netfs

Add some fuse filesystems to the list of pseudofs and netfs.

There are still tens of filesystems that should be evaluated and added.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>


From 0e36d7c2711ed9f7a1f2479d798e83769d07cbb3 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Wed, 29 May 2019 18:01:04 +0200
Subject: [PATCH] libmount: add bpf between pseudo filesystems

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826
Signed-off-by: Karel Zak <kzak@redhat.com>


From 9db442e95482a8a2fe1006d49f6010bf8f7ac35b Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Wed, 29 May 2019 18:01:04 +0200
Subject: [PATCH] libmount: add selinuxfs between pseudo filesystems

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826
Signed-off-by: Karel Zak <kzak@redhat.com>


Index: util-linux-2.33.1/libmount/src/utils.c
===================================================================
--- util-linux-2.33.1.orig/libmount/src/utils.c
+++ util-linux-2.33.1/libmount/src/utils.c
@@ -273,6 +273,7 @@ int mnt_fstype_is_pseudofs(const char *t
 		"autofs",
 		"bdev",
 		"binfmt_misc",
+		"bpf",
 		"cgroup",
 		"cgroup2",
 		"configfs",
@@ -283,7 +284,14 @@ int mnt_fstype_is_pseudofs(const char *t
 		"devtmpfs",
 		"dlmfs",
 		"efivarfs",
-		"fuse.gvfs-fuse-daemon",
+		"fuse", /* Fallback name of fuse used by many poorly written drivers. */
+		"fuse.archivemount", /* Not a true pseudofs (has source), but source is not reported. */
+		"fuse.dumpfs", /* In fact, it is a netfs, but source is not reported. */
+		"fuse.encfs", /* Not a true pseudofs (has source), but source is not reported. */
+		"fuse.gvfs-fuse-daemon", /* Old name, not used by gvfs any more. */
+		"fuse.gvfsd-fuse",
+		"fuse.rofiles-fuse",
+		"fuse.xwmfs",
 		"fusectl",
 		"hugetlbfs",
 		"mqueue",
@@ -298,6 +306,7 @@ int mnt_fstype_is_pseudofs(const char *t
 		"rootfs",
 		"rpc_pipefs",
 		"securityfs",
+		"selinuxfs",
 		"sockfs",
 		"spufs",
 		"sysfs",
@@ -323,6 +332,8 @@ int mnt_fstype_is_netfs(const char *type
 	    strncmp(type,"nfs", 3) == 0 ||
 	    strcmp(type, "afs")    == 0 ||
 	    strcmp(type, "ncpfs")  == 0 ||
+	    strcmp(type, "fuse.curlftpfs") == 0 ||
+	    strcmp(type, "fuse.sshfs") == 0 ||
 	    strncmp(type,"9p", 2)  == 0)
 		return 1;
 	return 0;
openSUSE Build Service is sponsored by