aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/test
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-27 09:17:14 +0900
committerOphestra <cat@gensokyo.uk>2025-12-27 10:16:35 +0900
commit2f8ca8337633a199aae9b4cdd71c66ed1c9529a5 (patch)
treede6f37118e8ba7da80ac20a663478375a81c1be3 /cmd/sharefs/test
parent3d720ada922def503977d6972aa953ffe924e714 (diff)
cmd/sharefs: containerise filesystem daemon
This replaces the forking daemonise libfuse function which prevents Go callbacks from calling into the runtime. This also enforces least privilege on the daemon process. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs/test')
-rw-r--r--cmd/sharefs/test/test.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/sharefs/test/test.py b/cmd/sharefs/test/test.py
index 8be70993..969bfa56 100644
--- a/cmd/sharefs/test/test.py
+++ b/cmd/sharefs/test/test.py
@@ -33,11 +33,6 @@ check_bad_opts_output("allow_other", "sharefs: setuid and setgid must not be 0\n
check_bad_opts_output("setuid=1023", "sharefs: setuid and setgid must not be 0\n", privileged=True)
check_bad_opts_output("setgid=1023", "sharefs: setuid and setgid must not be 0\n", privileged=True)
-# Bad backing directory:
-check_bad_opts_output("clone_fd", "sharefs: cannot open source: no such file or directory\n", source="/proc/nonexistent")
-check_bad_opts_output("clone_fd", "sharefs: cannot open source: not a directory\n", source="/proc/self/exe")
-check_bad_opts_output("clone_fd", "sharefs: cannot open source: permission denied\n", source="/root")
-
# Make sure nothing actually got mounted:
machine.fail("umount /mnt")
machine.succeed("rmdir /mnt")