From 6697ffd6e213828ff4cd873cd1d104877096a230 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 18 Oct 2020 21:05:44 +0200 Subject: 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 --- internal/syscallcompat/mem.prof | Bin 0 -> 902 bytes internal/syscallcompat/mem2.prof | Bin 0 -> 1015 bytes internal/syscallcompat/new.txt | 6 ++++++ internal/syscallcompat/old.txt | 6 ++++++ internal/syscallcompat/prof | Bin 0 -> 6499 bytes internal/syscallcompat/prof2 | Bin 0 -> 5831 bytes 6 files changed, 12 insertions(+) create mode 100644 internal/syscallcompat/mem.prof create mode 100644 internal/syscallcompat/mem2.prof create mode 100644 internal/syscallcompat/new.txt create mode 100644 internal/syscallcompat/old.txt create mode 100644 internal/syscallcompat/prof create mode 100644 internal/syscallcompat/prof2 (limited to 'internal/syscallcompat') diff --git a/internal/syscallcompat/mem.prof b/internal/syscallcompat/mem.prof new file mode 100644 index 0000000..052fcc6 Binary files /dev/null and b/internal/syscallcompat/mem.prof differ diff --git a/internal/syscallcompat/mem2.prof b/internal/syscallcompat/mem2.prof new file mode 100644 index 0000000..e0f73aa Binary files /dev/null and b/internal/syscallcompat/mem2.prof 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 Binary files /dev/null and b/internal/syscallcompat/prof differ diff --git a/internal/syscallcompat/prof2 b/internal/syscallcompat/prof2 new file mode 100644 index 0000000..54fad10 Binary files /dev/null and b/internal/syscallcompat/prof2 differ -- cgit v1.2.3