/[hurd]/hurd/libiohelp/iohelp.h
ViewVC logotype

Diff of /hurd/libiohelp/iohelp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by roland, Sat Jun 16 20:22:14 2001 UTC revision 1.12 by roland, Sun May 5 03:26:17 2002 UTC
# Line 1  Line 1 
1  /* Library providing helper functions for io servers.  /* Library providing helper functions for io servers.
2     Copyright (C) 1993,94,96,98,2001 Free Software Foundation, Inc.     Copyright (C) 1993,94,96,98,2001,02 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
5     modify it under the terms of the GNU General Public License as     modify it under the terms of the GNU General Public License as
# Line 89  error_t iohelp_create_iouser (struct iou Line 89  error_t iohelp_create_iouser (struct iou
89  /* Create a new IOUSER in USER for the specified arrays.  On error, *USER  /* Create a new IOUSER in USER for the specified arrays.  On error, *USER
90     is set to NULL.  */     is set to NULL.  */
91  error_t iohelp_create_complex_iouser (struct iouser **user,  error_t iohelp_create_complex_iouser (struct iouser **user,
92                                        uid_t *uids, int nuids,                                        const uid_t *uids, int nuids,
93                                        gid_t *gids, int ngids);                                        const gid_t *gids, int ngids);
94    
95  /* Create a new IOUSER in USER for the specified uid and gid.  On error,  /* Create a new IOUSER in USER for the specified uid and gid.  On error,
96     *USER is set to NULL.  */     *USER is set to NULL.  */
97  error_t iohelp_create_simple_iouser (struct iouser **user, uid_t uid,  error_t iohelp_create_simple_iouser (struct iouser **user,
98                                       gid_t gid);                                       uid_t uid, gid_t gid);
99    
100  /* Create a new IOUSER in USER with no identity.  On error, *USER is set  /* Create a new IOUSER in USER with no identity.  On error, *USER is set
101     to NULL.  */     to NULL.  */
102  error_t iohelp_create_empty_iouser (struct iouser **user);  error_t iohelp_create_empty_iouser (struct iouser **user);
103    
104    /* Create a new IOUSER in NEW_USER that restricts OLD_USER to the subset
105       specified by the two ID lists.  This is appropriate for implementing
106       io_restrict_auth.  */
107    error_t iohelp_restrict_iouser (struct iouser **new_user,
108                                    const struct iouser *old_user,
109                                    const uid_t *uids, int nuids,
110                                    const gid_t *gids, int ngids);
111    
112  /* Conduct a reauthentication transaction, returning a new iouser in  /* Conduct a reauthentication transaction, returning a new iouser in
113     USER.  AUTHSERVER is the I/O servers auth port.  The rendezvous port     USER.  AUTHSERVER is the I/O servers auth port.  The rendezvous port
114     provided by the user is REND_PORT.  If the transaction cannot be     provided by the user is REND_PORT.  If the transaction cannot be

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26