Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636170 - app-admin/cgmanager: add check for CONFIG_USER_NS and CONFIG_PID_NS
Summary: app-admin/cgmanager: add check for CONFIG_USER_NS and CONFIG_PID_NS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-11-01 16:14 UTC by Maciej S. Szmigiero
Modified: 2021-02-05 23:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2017-11-01 16:14:11 UTC
app-admin/cgmanager is limited in functionality without CONFIG_USER_NS and CONFIG_PID_NS being set in the kernel configuration.

From cgmanager.c:
if (stat("/proc/self/ns/pid", &sb) == 0) {
        mypidns = read_pid_ns_link(getpid())
        setns_pid_supported = true;
}
if (stat("/proc/self/ns/user", &sb) == 0) {
        myuserns = read_user_ns_link(getpid());
        setns_user_supported = true;
}

And then various functionalities in the code depend on setns_pid_supported and setns_user_supported variables being true.

Please add check for these kernel config items to app-admin/cgmanager ebuild so
users know they should enable these options for full package functionality.