[OpenAFS-devel] Re: Proposed new kafs interface: k_getpag
Love Hörnquist Åstrand
lha@kth.se
Wed, 15 Jul 2009 23:01:43 -0700
--Apple-Mail-195-981447975
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii;
format=flowed;
delsp=yes
Hello Russ,
> In the current development version, OpenAFS has added a new pioctl
> that's
> used to retrieve the current PAG (if any). This 'C' pioctl 13, or
> _AFSCIOCTL(13) in the Heimdal kafs parlance. It returns the current
> PAG
> number or 0xffffffff (NOPAG) if the process is not in a PAG.
>
> I would like to add this to the libkopenafs library so that it can
> be used
> by PAM modules. (It's useful for an AFS PAM module to support the
> operation of "put this process in a PAG if it isn't already in a
> PAG, but
> don't leave the current PAG if it exists.") However, the intention
> of the
> libkopenafs interface is that it remain API-compatible with the
> Heimdal
> libkafs interface. We intend to add the additional functions,
> including
> the token manipulation functions, down the road.
>
> So, I'd like to propose the following interface and get any feedback
> if
> the Heimdal community sees a problem with it.
I don't see any problems, however, I want to ask a question.
That do you plan to do with the value you get back ? From your problem
description this api would also solve your problem description.
int k_haspag(void); /* k_isinpag() ? */
Love
--Apple-Mail-195-981447975
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>Hello Russ,</div><div><div><br></div><blockquote =
type=3D"cite"><div>In the current development version, OpenAFS has added =
a new pioctl that's<br>used to retrieve the current PAG (if any). =
This 'C' pioctl 13, or<br>_AFSCIOCTL(13) in the Heimdal kafs =
parlance. It returns the current PAG<br>number or 0xffffffff =
(NOPAG) if the process is not in a PAG.<br><br>I would like to add this =
to the libkopenafs library so that it can be used<br>by PAM modules. =
(It's useful for an AFS PAM module to support the<br>operation of =
"put this process in a PAG if it isn't already in a PAG, but<br>don't =
leave the current PAG if it exists.") However, the intention of =
the<br>libkopenafs interface is that it remain API-compatible with the =
Heimdal<br>libkafs interface. We intend to add the additional =
functions, including<br>the token manipulation functions, down the =
road.<br><br>So, I'd like to propose the following interface and get any =
feedback if<br>the Heimdal community sees a problem with it.<font =
class=3D"Apple-style-span" color=3D"#000000"><font =
class=3D"Apple-style-span" =
color=3D"#144FAE"><br></font></font></div></blockquote><br></div><div>I =
don't see any problems, however, I want to ask a =
question.</div><div><br></div><div>That do you plan to do with the value =
you get back ? =46rom your problem description this api would also solve =
your problem description.</div><div><br></div><div>int =
k_haspag(void); /* k_isinpag() ? =
*/</div><div><br></div><div>Love</div><div><br></div><div><br></div></body=
></html>=
--Apple-Mail-195-981447975--