Bug 11541

Summary: unshare command doesn't support cgroup namespaces
Product: Busybox Reporter: Matt Fischer <matt.fischer>
Component: Standard ComplianceAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: unshare: Add support for -C flag

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.