|
Message-ID: <1660505746.8419.1514989729607@ichabod.co-bxl> Date: Wed, 3 Jan 2018 15:28:49 +0100 (CET) From: Geo Kozey <geokozey@...lfence.com> To: Mahesh Bandewar <mahesh@...dewar.net> Cc: Kernel-hardening <kernel-hardening@...ts.openwall.com>, Linux Security <linux-security-module@...r.kernel.org>, Serge Hallyn <serge@...lyn.com>, Michael Kerrisk <mtk.manpages@...il.com>, Kees Cook <keescook@...omium.org>, "Eric W . Biederman" <ebiederm@...ssion.com>, Eric Dumazet <edumazet@...gle.com> Subject: Re: [PATCHv4 1/2] capability: introduce sysctl for controlled user-ns capability whitelist > From: Mahesh Bandewar <maheshb@...gle.com> > > The default value set (for kernel.controlled_userns_caps_whitelist) is > CAP_FULL_SET indicating that no capability is controlled by default to > maintain compatibility with the existing behavior of user-ns. Administrator > will have to modify this sysctl to control any capability as such. e.g. to > control CAP_NET_RAW the mask need to be changed like - > > # sysctl -q kernel.controlled_userns_caps_whitelist > kernel.controlled_userns_caps_whitelist = 1f,ffffffff > # sysctl -w kernel.controlled_userns_caps_whitelist=1f,ffffdfff > kernel.controlled_userns_caps_whitelist = 1f,ffffdfff > > For bit-to-mask conversion please check include/uapi/linux/capability.h > file. Is it possible to make those sysctl values human readable? That would make admins life easier. Yours sincerely G. K.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.