summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/proc/cgroup.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-01-16 13:58:50 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-16 15:05:40 -0800
commitab48112e41427579ecf585f6280be1e2d58acf06 (patch)
treefc412d24661f9f8ecf13ca2b648bac961953199a /pkg/sentry/fs/proc/cgroup.go
parent70d7c52bd7583393d39177a7935cca57372d67f1 (diff)
Add IfChange/ThenChange reminders in fs/proc
There is a lot of code duplication for VFSv2 and this serves as remind to keep the copies in sync. Updates #1195 PiperOrigin-RevId: 290139234
Diffstat (limited to 'pkg/sentry/fs/proc/cgroup.go')
-rw-r--r--pkg/sentry/fs/proc/cgroup.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/fs/proc/cgroup.go b/pkg/sentry/fs/proc/cgroup.go
index 05e31c55d..c4abe319d 100644
--- a/pkg/sentry/fs/proc/cgroup.go
+++ b/pkg/sentry/fs/proc/cgroup.go
@@ -21,6 +21,8 @@ import (
"gvisor.dev/gvisor/pkg/sentry/fs"
)
+// LINT.IfChange
+
func newCGroupInode(ctx context.Context, msrc *fs.MountSource, cgroupControllers map[string]string) *fs.Inode {
// From man 7 cgroups: "For each cgroup hierarchy of which the process
// is a member, there is one entry containing three colon-separated
@@ -39,3 +41,5 @@ func newCGroupInode(ctx context.Context, msrc *fs.MountSource, cgroupControllers
return newStaticProcInode(ctx, msrc, []byte(data))
}
+
+// LINT.ThenChange(../../fsimpl/proc/tasks_files.go)