home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / src / auth.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-29  |  1.1 KB  |  37 lines

  1. /*  Authentication headers
  2.  
  3.     ©1998, 1999 Joseph Walton
  4.  
  5.     This software is distributed under the terms of the GNU General Public
  6.     License; either version 2 of the License, or (at your option) any
  7.     later version.
  8. */
  9.  
  10. #ifndef NFSD_AUTH_H
  11. #define NFSD_AUTH_H
  12.  
  13. #include "nfs.h"
  14. #include <exec/types.h>
  15.  
  16. /* Permissions we may wish to give, or check for*/
  17. #define ALLOW_READ 1     /* They can read arbitrary data from it */
  18. #define ALLOW_WRITE 2    /* They can write arbitrary data to it */
  19. #define ALLOW_SETATTRS 3 /* They may set attributes of this file */
  20. #define ALLOW_GETATTRS 4 /* They may get the attributes of this file */
  21.  
  22. /* Public prototypes */
  23.  
  24. nfsstat check_permission(struct Call *call, struct LocalFile *lf,
  25.     ULONG permission);
  26. nfsstat does_mount_permit(struct Call *call,
  27.     STRPTR path, ULONG permission);
  28. nfsstat does_file_allow(struct Call *call, UWORD uid, UWORD gid,
  29.     LONG prot, ULONG permission);
  30. LONG owner_of(struct Call *call);
  31. void print_auth(struct Call *call);
  32. void print_auth_once(struct Call *call);
  33. void impose_configuration(struct LocalFile *lf);
  34.  
  35. #endif
  36.  
  37.