[gnome-build-meta/valentindavid/pinebook-pro: 8/18] Fix fusermount permissions



commit d1b7d8c3f09d00357aac9765687b0c28607a0777
Author: Valentin David <valentin david codethink co uk>
Date:   Thu Apr 16 18:41:06 2020 +0000

    Fix fusermount permissions

 elements/freedesktop-sdk.bst                 |  2 ++
 freedesktop-sdk-fusermount-permissions.patch | 26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
---
diff --git a/elements/freedesktop-sdk.bst b/elements/freedesktop-sdk.bst
index 9997a7e0..d9e21a51 100644
--- a/elements/freedesktop-sdk.bst
+++ b/elements/freedesktop-sdk.bst
@@ -6,6 +6,8 @@ sources:
   track-tags: true
 - kind: patch
   path: fdsdk-systemd-greeter-display-session.patch
+- kind: patch
+  path: freedesktop-sdk-fusermount-permissions.patch
 config:
   options:
     target_arch: '%{arch}'
diff --git a/freedesktop-sdk-fusermount-permissions.patch b/freedesktop-sdk-fusermount-permissions.patch
new file mode 100644
index 00000000..bbbe02eb
--- /dev/null
+++ b/freedesktop-sdk-fusermount-permissions.patch
@@ -0,0 +1,26 @@
+commit 5b1c4d67f59f12ce55bea4187d71bc8763f7bf3f
+Author: Valentin David <valentin david codethink co uk>
+Date:   Thu Apr 16 13:46:51 2020 +0200
+
+    components/fuse.bst: Fix permissions of fusermount
+    
+    fusermount requires setuid
+
+diff --git a/elements/components/fuse.bst b/elements/components/fuse.bst
+index 8e8ff51f4..9251af0d6 100644
+--- a/elements/components/fuse.bst
++++ b/elements/components/fuse.bst
+@@ -12,6 +12,13 @@ variables:
+ environment:
+   MOUNT_FUSE_PATH: '%{sbindir}'
+ 
++public:
++  initial-script:
++    script: |
++      #!/bin/bash
++      sysroot="${1}"
++      chmod 4755 "${sysroot}%{bindir}/fusermount"
++
+ sources:
+ - kind: git_tag
+   url: github:libfuse/libfuse.git


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]