summaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-10-18 21:05:44 +0200
committerJakob Unterwurzacher2020-10-18 21:07:30 +0200
commit6697ffd6e213828ff4cd873cd1d104877096a230 (patch)
treef256f0b720d0472b37c0af08806786d2232e8806 /internal/syscallcompat
parentc943ed32aaf94a4e60d96c7a513180d29b15a40a (diff)
fusefronted: reject GETXATTR "security.capability"
Unless we are mounted with -suid, we can reject these requests, and gain back some lost speed. Closes https://github.com/rfjakob/gocryptfs/issues/515
Diffstat (limited to 'internal/syscallcompat')
-rw-r--r--internal/syscallcompat/mem.profbin0 -> 902 bytes
-rw-r--r--internal/syscallcompat/mem2.profbin0 -> 1015 bytes
-rw-r--r--internal/syscallcompat/new.txt6
-rw-r--r--internal/syscallcompat/old.txt6
-rw-r--r--internal/syscallcompat/profbin0 -> 6499 bytes
-rw-r--r--internal/syscallcompat/prof2bin0 -> 5831 bytes
6 files changed, 12 insertions, 0 deletions
diff --git a/internal/syscallcompat/mem.prof b/internal/syscallcompat/mem.prof
new file mode 100644
index 0000000..052fcc6
--- /dev/null
+++ b/internal/syscallcompat/mem.prof
Binary files differ
diff --git a/internal/syscallcompat/mem2.prof b/internal/syscallcompat/mem2.prof
new file mode 100644
index 0000000..e0f73aa
--- /dev/null
+++ b/internal/syscallcompat/mem2.prof
Binary files differ
diff --git a/internal/syscallcompat/new.txt b/internal/syscallcompat/new.txt
new file mode 100644
index 0000000..df3a0ea
--- /dev/null
+++ b/internal/syscallcompat/new.txt
@@ -0,0 +1,6 @@
+goos: linux
+goarch: amd64
+pkg: github.com/rfjakob/gocryptfs/internal/syscallcompat
+BenchmarkLgetxattr-4 594607 1799 ns/op
+PASS
+ok github.com/rfjakob/gocryptfs/internal/syscallcompat 1.108s
diff --git a/internal/syscallcompat/old.txt b/internal/syscallcompat/old.txt
new file mode 100644
index 0000000..0020b27
--- /dev/null
+++ b/internal/syscallcompat/old.txt
@@ -0,0 +1,6 @@
+goos: linux
+goarch: amd64
+pkg: github.com/rfjakob/gocryptfs/internal/syscallcompat
+BenchmarkLgetxattr-4 77743 15183 ns/op
+PASS
+ok github.com/rfjakob/gocryptfs/internal/syscallcompat 1.360s
diff --git a/internal/syscallcompat/prof b/internal/syscallcompat/prof
new file mode 100644
index 0000000..4eb4f40
--- /dev/null
+++ b/internal/syscallcompat/prof
Binary files differ
diff --git a/internal/syscallcompat/prof2 b/internal/syscallcompat/prof2
new file mode 100644
index 0000000..54fad10
--- /dev/null
+++ b/internal/syscallcompat/prof2
Binary files differ