Re: [PATCH v2 4/4] bpf,lsm: Allow editing capabilities in BPF-LSM hooks

2024-06-15 Thread Serge E. Hallyn
On Thu, Jun 13, 2024 at 01:50:29AM -0700, Jonathan Calmels wrote: > On Wed, Jun 12, 2024 at 08:54:28PM GMT, John Johansen wrote: > > On 6/12/24 10:29, Paul Moore wrote: > > > On Wed, Jun 12, 2024 at 4:15 AM Jonathan Calmels > > > wrote: > > > > On Tue, Jun 11, 2024 at 06:38:31PM GMT, Paul Moore w

Re: [PATCH v2 1/4] capabilities: Add user namespace capabilities

2024-06-15 Thread Serge E. Hallyn
On Tue, Jun 11, 2024 at 01:20:40AM -0700, Jonathan Calmels wrote: > On Mon, Jun 10, 2024 at 08:00:57AM GMT, Serge E. Hallyn wrote: > > > > Now, one thing that does occur to me here is that there is a > > very mild form of sendmail-capabilities vulnerability that > >

Re: [PATCH v2 2/4] capabilities: Add securebit to restrict userns caps

2024-06-10 Thread Serge E. Hallyn
On Mon, Jun 10, 2024 at 02:46:06AM -0700, Jonathan Calmels wrote: > On Sun, Jun 09, 2024 at 09:33:01PM GMT, Serge E. Hallyn wrote: > > On Sun, Jun 09, 2024 at 03:43:35AM -0700, Jonathan Calmels wrote: > > > This patch adds a new capability security bit designed to constrain a &

Re: [PATCH v2 1/4] capabilities: Add user namespace capabilities

2024-06-10 Thread Serge E. Hallyn
On Sun, Jun 09, 2024 at 03:43:34AM -0700, Jonathan Calmels wrote: > Attackers often rely on user namespaces to get elevated (yet confined) > privileges in order to target specific subsystems (e.g. [1]). Distributions > have been pretty adamant that they need a way to configure these, most of > them

Re: [PATCH v2 1/4] capabilities: Add user namespace capabilities

2024-06-10 Thread Serge E. Hallyn
On Mon, Jun 10, 2024 at 01:47:13AM -0700, Jonathan Calmels wrote: > On Sun, Jun 09, 2024 at 08:50:24PM GMT, Serge E. Hallyn wrote: > > On Sun, Jun 09, 2024 at 03:43:34AM -0700, Jonathan Calmels wrote: > > > Attackers often rely on user namespaces to get elevated (yet confined) &

Re: [PATCH v2 2/4] capabilities: Add securebit to restrict userns caps

2024-06-09 Thread Serge E. Hallyn
On Sun, Jun 09, 2024 at 03:43:35AM -0700, Jonathan Calmels wrote: > This patch adds a new capability security bit designed to constrain a > task’s userns capability set to its bounding set. The reason for this is > twofold: > > - This serves as a quick and easy way to lock down a set of capabiliti

Re: [PATCH v2 1/4] capabilities: Add user namespace capabilities

2024-06-09 Thread Serge E. Hallyn
On Sun, Jun 09, 2024 at 03:43:34AM -0700, Jonathan Calmels wrote: (Adding amorgan as he doesn't seem to be on cc list) > Attackers often rely on user namespaces to get elevated (yet confined) > privileges in order to target specific subsystems (e.g. [1]). Distributions I'd modify this to say "in