Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728Ab3HBUtL (ORCPT ); Fri, 2 Aug 2013 16:49:11 -0400 Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]:55275 "EHLO homiemail-a85.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751670Ab3HBUtJ (ORCPT ); Fri, 2 Aug 2013 16:49:09 -0400 X-Greylist: delayed 1740 seconds by postgrey-1.27 at vger.kernel.org; Fri, 02 Aug 2013 16:49:09 EDT MIME-Version: 1.0 In-Reply-To: <20130801173854.28023.82045.stgit@warthog.procyon.org.uk> References: <20130801173846.28023.19009.stgit@warthog.procyon.org.uk> <20130801173854.28023.82045.stgit@warthog.procyon.org.uk> Date: Fri, 2 Aug 2013 15:49:06 -0500 Message-ID: Subject: Re: [PATCH 1/2] KEYS: Implement a big key type that can save to tmpfs From: Nico Williams To: David Howells Cc: keyrings@linux-nfs.org, linux-nfs@vger.kernel.org, simo@redhat.com, linux-kernel@vger.kernel.org, krbdev@mit.edu Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1517 Lines: 38 I think this is the wrong design. There are two problems you're trying to solve: a) how rpc.gssd finds credentials for processes on behalf of which it's acting b) how to create tmpfs locations in which to store credentials (which can be unbounded in size, so storing them in the kernel is silly; also the apps that use them are all user-land apps, so that too means there's no point in storing them in the kernel). Keyrings for the forst problem (or PAGs, or anything similar) is fine: on upcall to gssd the kernel tells it what it needs to know to find those credentials. (b) can be solved in many ways, and the simplest is to have a filesystem where top-level directories named after UIDs "exist" as soon as they are referenced and as long as they are non-empty. You can use autofs + tmpfs, or a variant of tmpfs for this. Solving (b) in a way that does not add a new ccache type (though having a KEYRING: ccache type that means "find the ccache URI in my keyring" is fine) is important because many of us run multiple implementations of Kerberos on any given host, and we do it because: - vendors are always behind the curve - legacy software linked with old versions of libkrb5 and friends - third party software Please review the above. Thanks, Nico -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/