diff options
author | Jakob Unterwurzacher | 2020-10-18 21:05:44 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-10-18 21:07:30 +0200 |
commit | 6697ffd6e213828ff4cd873cd1d104877096a230 (patch) | |
tree | f256f0b720d0472b37c0af08806786d2232e8806 /internal/syscallcompat | |
parent | c943ed32aaf94a4e60d96c7a513180d29b15a40a (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.prof | bin | 0 -> 902 bytes | |||
-rw-r--r-- | internal/syscallcompat/mem2.prof | bin | 0 -> 1015 bytes | |||
-rw-r--r-- | internal/syscallcompat/new.txt | 6 | ||||
-rw-r--r-- | internal/syscallcompat/old.txt | 6 | ||||
-rw-r--r-- | internal/syscallcompat/prof | bin | 0 -> 6499 bytes | |||
-rw-r--r-- | internal/syscallcompat/prof2 | bin | 0 -> 5831 bytes |
6 files changed, 12 insertions, 0 deletions
diff --git a/internal/syscallcompat/mem.prof b/internal/syscallcompat/mem.prof Binary files differnew file mode 100644 index 0000000..052fcc6 --- /dev/null +++ b/internal/syscallcompat/mem.prof diff --git a/internal/syscallcompat/mem2.prof b/internal/syscallcompat/mem2.prof Binary files differnew file mode 100644 index 0000000..e0f73aa --- /dev/null +++ b/internal/syscallcompat/mem2.prof 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 Binary files differnew file mode 100644 index 0000000..4eb4f40 --- /dev/null +++ b/internal/syscallcompat/prof diff --git a/internal/syscallcompat/prof2 b/internal/syscallcompat/prof2 Binary files differnew file mode 100644 index 0000000..54fad10 --- /dev/null +++ b/internal/syscallcompat/prof2 |