[4007] in arla-drinkers
Re: hacks to get 0.44pre going on netbsd-4
daemon@ATHENA.MIT.EDU (Jonathan A. Kollasch)
Sun Sep 3 19:46:19 2006
From arla-drinkers-bounces@stacken.kth.se Sun Sep 03 23:46:19 2006
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 9545 invoked from network); 3 Sep 2006 23:46:18 -0000
Received: from mx1.kth.se (130.237.32.140)
by charon.mit.edu with SMTP; 3 Sep 2006 23:46:18 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx1.kth.se (Postfix) with ESMTP id 1E5231409A3;
Mon, 4 Sep 2006 01:46:17 +0200 (CEST)
Received: from mx1.kth.se ([127.0.0.1])
by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 01947-05-64; Mon, 4 Sep 2006 01:46:13 +0200 (CEST)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
by mx1.kth.se (Postfix) with ESMTP id 8207F140923;
Mon, 4 Sep 2006 01:46:13 +0200 (CEST)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
by tapas.stacken.kth.se (Postfix) with ESMTP id A8FB0534FC;
Mon, 4 Sep 2006 01:46:12 +0200 (CEST)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
by tapas.stacken.kth.se (Postfix) with ESMTP id 8DB88534FC
for <arla-drinkers@tapas.stacken.kth.se>;
Mon, 4 Sep 2006 01:46:09 +0200 (CEST)
Received: from mx3.kth.se (mx3.kth.se [130.237.48.97])
by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id k83Nk6NH005836
for <arla-drinkers@stacken.kth.se>;
Mon, 4 Sep 2006 01:46:07 +0200 (MET DST)
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx3.kth.se (Postfix) with ESMTP id 351E51406EB
for <arla-drinkers@stacken.kth.se>;
Mon, 4 Sep 2006 01:45:19 +0200 (CEST)
Received: from mx3.kth.se ([127.0.0.1])
by localhost (mx3.kth.se [127.0.0.1]) (amavisd-new,
port 10024) with LMTP id 14278-01 for <arla-drinkers@stacken.kth.se>;
Mon, 4 Sep 2006 01:45:14 +0200 (CEST)
Received: from mail.kollasch.net (unknown [IPv6:2002:a867:36dd:1::19])
by mx3.kth.se (Postfix) with ESMTP id C8FD51406CF
for <arla-drinkers@stacken.kth.se>;
Mon, 4 Sep 2006 01:45:13 +0200 (CEST)
Received: from kirkkit.kollasch.net (kirkkit.kollasch.net
[IPv6:2002:a867:36dd:1:2b0:d0ff:fec8:589c])
by mail.kollasch.net (Postfix) with ESMTP id C9C4C31CE2;
Sun, 3 Sep 2006 18:45:10 -0500 (CDT)
Date: Sun, 3 Sep 2006 18:45:09 -0500
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: arla-drinkers@stacken.kth.se
Subject: Re: hacks to get 0.44pre going on netbsd-4
Message-ID: <20060903234509.GA8034@kirkkit.kollasch.net>
References: <20060819220659.GG4568@kirkkit.kollasch.net>
<20060902210805.GA1385@artax.karlin.mff.cuni.cz>
<lsr1wqt6hu6.fsf@kashyyyk.ite.kth.se>
Mime-Version: 1.0
In-Reply-To: <lsr1wqt6hu6.fsf@kashyyyk.ite.kth.se>
User-Agent: Mutt/1.5.11
X-Virus-Scanned: by amavisd-new at kth.se
X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.0 tests=BAYES_00
X-Spam-Level:
Cc: Pavel Cahyna <pavel@netbsd.org>,
Tomas Olsson <tol@stacken.kth.se>
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0095557296=="
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
X-Virus-Scanned: by amavisd-new at kth.se
--===============0095557296==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7"
Content-Disposition: inline
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Sep 03, 2006 at 12:09:53AM +0200, Tomas Olsson wrote:
> Pavel Cahyna <pavel@netbsd.org> writes:
> > how can Arla work without PAGs? I was thinking that this is a key part.
> >
> >From the daemon's point of view a PAG is just a number identifying the s=
et
> of AFS credentials to use for the request. If the user hasn't set his PAG
> nnpfs defaults to the user's uid, so if there is no way to set your PAG y=
ou
> just have that one slot to work with.
>=20
> For an ordinary user that shouldn't be too much of a limitation, they don=
't
> use pagsh anyway. Personally I do feel a bit handicapped by it on my Mac.
>=20
I'm not an ordinary user, I have a few instances of my principal I use for
different things. Also, if you have a daemon(s) that need AFS access, PAGs
become very useful.
> > could you please briefly explain how were PAGs implemented before kauth
> >
> We add magic numbers to the process' group list, it's very convenient in
> that it is inherited across fork() etc. Perhaps not a very good way to u=
se
> those fields though, and it involves some ugly tricks.
>=20
> > and how does kauth break this?
> >
> I'll leave that one for the experts.
(I'm not an expert.)
Short answer, because it's more work. Sorry, I'm rather lazy.
After some thought, it seems that it would be sort of easy to get PAGs
working again under kauth, it's just that we have to use kauth_cred_t
rather than struct ucred. Again, I'm not an expert, but, it seems to
me that it might be a bit awkward supporting kauth, pre-kauth, and
non-kauth kernels in the same source files.
Jonathan A. Kollasch
P.S.
I'd like to apologize for my previous slams of kauth, they
were mostly just a vent of my frustration with change.
--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFE+2kFOjx1ye3hmokRAjJGAKCarbkrHRW91/2JA8QYSKCuki6OmACfRGHV
jB3u3uZGHwacKDK4M3tLwGU=
=WsgP
-----END PGP SIGNATURE-----
--1yeeQ81UyVL57Vl7--
--===============0095557296==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers
--===============0095557296==--