File: fuse-disable-sys-mount-under-flatpak.patch

package info (click to toggle)
foundry 1.1~beta-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 15,552 kB
  • sloc: ansic: 167,487; xml: 417; makefile: 21; sh: 19; javascript: 10
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 1ec935f4abecd08957affc7b21bae6bf5be78931 Mon Sep 17 00:00:00 2001
From: Christian Hergert <chergert@redhat.com>
Date: Thu, 12 Apr 2018 01:47:57 -0700
Subject: [PATCH] libfuse: disable sys mount under flatpak

---
 lib/mount.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/mount.c b/lib/mount.c
index 7a18c11..1667db2 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -392,6 +392,9 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo,
 	int fd;
 	int res;
 
+	/* disable in flatpak */
+	return -2;
+
 	if (!mnt) {
 		fprintf(stderr, "fuse: missing mountpoint parameter\n");
 		return -1;
-- 
2.17.0.rc2