From e4984f8539560d49847fec84925333966f0c58e8 Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Tue, 18 May 2021 14:44:09 -0700 Subject: Delete /cloud/gvisor/sandbox/sentry/gofer/opened_write_execute_file metric This metric is replaced by /cloud/gvisor/sandbox/sentry/suspicious_operations metric with field value opened_write_execute_file. PiperOrigin-RevId: 374509823 --- pkg/sentry/fs/gofer/file.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/sentry/fs/gofer') diff --git a/pkg/sentry/fs/gofer/file.go b/pkg/sentry/fs/gofer/file.go index bcdb2dda2..819e140bc 100644 --- a/pkg/sentry/fs/gofer/file.go +++ b/pkg/sentry/fs/gofer/file.go @@ -92,7 +92,6 @@ func NewFile(ctx context.Context, dirent *fs.Dirent, name string, flags fs.FileF } if flags.Write { if err := dirent.Inode.CheckPermission(ctx, fs.PermMask{Execute: true}); err == nil { - fsmetric.GoferOpensWX.Increment() metric.SuspiciousOperationsMetric.Increment("opened_write_execute_file") log.Warningf("Opened a writable executable: %q", name) } -- cgit v1.2.3