Bug 11541 - unshare command doesn't support cgroup namespaces
Summary: unshare command doesn't support cgroup namespaces
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 16:37 UTC by Matt Fischer
Modified: 2018-12-03 16:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
unshare: Add support for -C flag (4.24 KB, application/octet-stream)
2018-12-03 16:37 UTC, Matt Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Fischer 2018-12-03 16:37:43 UTC
Created attachment 7891 [details]
unshare: Add support for -C flag

The Busybox implementation of the unshare command does not have support for the -C, --cgroup flag which is provided in the utils-linux implementation.  

I've attached a patch which adds the missing flag.  It's just a mechanical duplication of the code that implements the other flags, but it appears to work correctly for me.