~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/sunrpc/auth_gss.h

Version: ~ [ linux-5.6.3 ] ~ [ linux-5.5.16 ] ~ [ linux-5.4.31 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.114 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.175 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.218 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.218 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.82 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * linux/include/linux/sunrpc/auth_gss.h
  3  *
  4  * Declarations for RPCSEC_GSS
  5  *
  6  * Dug Song <dugsong@monkey.org>
  7  * Andy Adamson <andros@umich.edu>
  8  * Bruce Fields <bfields@umich.edu>
  9  * Copyright (c) 2000 The Regents of the University of Michigan
 10  */
 11 
 12 #ifndef _LINUX_SUNRPC_AUTH_GSS_H
 13 #define _LINUX_SUNRPC_AUTH_GSS_H
 14 
 15 #ifdef __KERNEL__
 16 #include <linux/sunrpc/auth.h>
 17 #include <linux/sunrpc/svc.h>
 18 #include <linux/sunrpc/gss_api.h>
 19 
 20 #define RPC_GSS_VERSION         1
 21 
 22 #define MAXSEQ 0x80000000 /* maximum legal sequence number, from rfc 2203 */
 23 
 24 enum rpc_gss_proc {
 25         RPC_GSS_PROC_DATA = 0,
 26         RPC_GSS_PROC_INIT = 1,
 27         RPC_GSS_PROC_CONTINUE_INIT = 2,
 28         RPC_GSS_PROC_DESTROY = 3
 29 };
 30 
 31 enum rpc_gss_svc {
 32         RPC_GSS_SVC_NONE = 1,
 33         RPC_GSS_SVC_INTEGRITY = 2,
 34         RPC_GSS_SVC_PRIVACY = 3
 35 };
 36 
 37 /* on-the-wire gss cred: */
 38 struct rpc_gss_wire_cred {
 39         u32                     gc_v;           /* version */
 40         u32                     gc_proc;        /* control procedure */
 41         u32                     gc_seq;         /* sequence number */
 42         u32                     gc_svc;         /* service */
 43         struct xdr_netobj       gc_ctx;         /* context handle */
 44 };
 45 
 46 /* on-the-wire gss verifier: */
 47 struct rpc_gss_wire_verf {
 48         u32                     gv_flavor;
 49         struct xdr_netobj       gv_verf;
 50 };
 51 
 52 /* return from gss NULL PROC init sec context */
 53 struct rpc_gss_init_res {
 54         struct xdr_netobj       gr_ctx;         /* context handle */
 55         u32                     gr_major;       /* major status */
 56         u32                     gr_minor;       /* minor status */
 57         u32                     gr_win;         /* sequence window */
 58         struct xdr_netobj       gr_token;       /* token */
 59 };
 60 
 61 /* The gss_cl_ctx struct holds all the information the rpcsec_gss client
 62  * code needs to know about a single security context.  In particular,
 63  * gc_gss_ctx is the context handle that is used to do gss-api calls, while
 64  * gc_wire_ctx is the context handle that is used to identify the context on
 65  * the wire when communicating with a server. */
 66 
 67 struct gss_cl_ctx {
 68         atomic_t                count;
 69         enum rpc_gss_proc       gc_proc;
 70         u32                     gc_seq;
 71         spinlock_t              gc_seq_lock;
 72         struct gss_ctx          *gc_gss_ctx;
 73         struct xdr_netobj       gc_wire_ctx;
 74         struct xdr_netobj       gc_acceptor;
 75         u32                     gc_win;
 76         unsigned long           gc_expiry;
 77         struct rcu_head         gc_rcu;
 78 };
 79 
 80 struct gss_upcall_msg;
 81 struct gss_cred {
 82         struct rpc_cred         gc_base;
 83         enum rpc_gss_svc        gc_service;
 84         struct gss_cl_ctx __rcu *gc_ctx;
 85         struct gss_upcall_msg   *gc_upcall;
 86         const char              *gc_principal;
 87         unsigned long           gc_upcall_timestamp;
 88 };
 89 
 90 #endif /* __KERNEL__ */
 91 #endif /* _LINUX_SUNRPC_AUTH_GSS_H */
 92 
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp