summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-05-18 21:52:31 +0000
committergVisor bot <gvisor-bot@google.com>2021-05-18 21:52:31 +0000
commitbfb80ea8f139783b49bdda9e88c6542b571326cd (patch)
treed700dada1bdd9827bdc98411c127f584acf2ec60 /pkg/sentry/fs
parentf4ffca2ffad352f917df63c72b3e0189791ecc7a (diff)
parente4984f8539560d49847fec84925333966f0c58e8 (diff)
Merge release-20210510.0-53-ge4984f853 (automated)
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/gofer/file.go1
1 files changed, 0 insertions, 1 deletions
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)
}