From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH] KEYS: allow changing key ownership with CAP_SYS_ADMIN in a NS Date: Tue, 03 Oct 2017 16:04:56 +0100 Message-ID: <18008.1507043096@warthog.procyon.org.uk> References: <87y3oscmjh.fsf@xmission.com> <20171003024528.28242-1-xnox@ubuntu.com> <87fub0gb6k.fsf@xmission.com> <20171003041121.GA2751@mail.hallyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87y3oscmjh.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> Content-ID: <18007.1507043095.1-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Eric W. Biederman wrote: > Yes. It sounds like either we need to change something in the > implementation of keys so they have a clear user namespace owner > or implement capable_wrt_key_uidgid. I'm thinking on the lines of making keys belong to a namespace in some way, and automatically invalidating them when the owning namespace is deleted. This will cause all links to them to be gc'd and thence the keys themselves. David