Skip to content

Commit fe64389

Browse files
utam0kroboquat
utam0k
authored andcommitted
ws-daemon: update the docs for cgroup v2.
1 parent f4826d3 commit fe64389

File tree

3 files changed

+173
-77
lines changed

3 files changed

+173
-77
lines changed

components/ws-daemon/pkg/iws/iws.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,11 @@ func (wbs *InWorkspaceServiceServer) WriteIDMapping(ctx context.Context, req *ap
818818
return &api.WriteIDMappingResponse{}, nil
819819
}
820820

821+
// Allow workspace users to manipulate the cgroups to which the user process belong by constructing the cgroups of the following form
822+
//
823+
// <container-cgorup> drwxr-xr-x 3 root root
824+
// └── workspace drwxr-xr-x 5 gitpodUid gitpodGid
825+
// └── user drwxr-xr-x 5 gitpodUid gitpodGid
821826
func (wbs *InWorkspaceServiceServer) EvacuateCGroup(ctx context.Context, req *api.EvacuateCGroupRequest) (*api.EvacuateCGroupResponse, error) {
822827
if cgroups.Mode() != cgroups.Unified {
823828
return &api.EvacuateCGroupResponse{}, nil

0 commit comments

Comments
 (0)