Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d34a781

Browse files
author
utam0k
committedMar 4, 2022
ws-daemon: update the docs for cgroup v2.
1 parent 3063396 commit d34a781

File tree

3 files changed

+173
-77
lines changed

3 files changed

+173
-77
lines changed
 

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

+5
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)
Please sign in to comment.