RPC_GSS_SECCREATE(3)
πΈ RPCSEC_GSS β GSS-API based authentication for RPC π
okay bestie, welcome to RPC_GSS_SECCREATE(3), a page from the Library Functions Manual section, and no, the title and the manual name are the same thing twice, that's just how manpages are, don't question it π
β¨ SYNOPSIS β¨
#include <rpc/rpcsec_gss.h>
π DESCRIPTION π
so like. RPCSEC_GSS is a security mechanism for the RPC protocol. it uses the Generic Security Service API (GSS-API) to establish a security context between a client and a server, and to make sure that literally all subsequent communication between client and server is properly authenticated. and then, optionally, extra protection can be applied to the connection, because why stop at good when you can go iconic π
- the integrity service uses checksums to make sure all data sent by a peer is received without modification β no sneaky edits, periodt.
- the privacy service uses encryption to make sure no third party can access the data for a connection. it's giving β¨none of your businessβ¨.
To use this system, an application must first use rpc_gss_seccreate() to establish a security context.
that's the whole vibe. step one is always rpc_gss_seccreate(). no cap π«Ά
π¦ DATA STRUCTURES π¦
Data structures used by RPCSEC_GSS appear below. buckle up, there's a whole lineup π
rpc_gss_service_t
This type defines the types of security service required for rpc_gss_seccreate().
typedef enum {
rpc_gss_svc_default = 0,
rpc_gss_svc_none = 1,
rpc_gss_svc_integrity = 2,
rpc_gss_svc_privacy = 3
} rpc_gss_service_t;
rpc_gss_options_ret_t
This structure contains various optional values which are used while creating a security context.
typedef struct {
int req_flags; /* GSS request bits */
int time_req; /* requested lifetime */
gss_cred_id_t my_cred; /* GSS credential */
gss_channel_bindings_t input_channel_bindings;
} rpc_gss_options_req_t;
rpc_gss_options_ret_t
Various details of the created security context are returned using this structure.
typedef struct {
int major_status;
int minor_status;
u_int rpcsec_version;
int ret_flags;
int time_req;
gss_ctx_id_t gss_context;
char actual_mechanism[MAX_GSS_MECH];
} rpc_gss_options_ret_t;
rpc_gss_principal_t
This type is used to refer to an client principal which is represented in GSS-API exported name form (see gss_export_name(3) for more details). Names in this format may be stored in access control lists or compared with other names in exported name form. This structure is returned by rpc_gss_get_principal_name() and is also referenced by the rpc_gss_rawcred_t structure.
typedef struct {
int len;
char name[1];
} *rpc_gss_principal_t;
rpc_gss_rawcred_t
This structure is used to access the raw credentials associated with a security context.
typedef struct {
u_int version; /* RPC version number */
const char *mechanism; /* security mechanism */
const char *qop; /* quality of protection */
rpc_gss_principal_t client_principal; /* client name */
const char *svc_principal; /* server name */
rpc_gss_service_t service; /* service type */
} rpc_gss_rawcred_t;
rpc_gss_ucred_t
Unix credentials which are derived form the raw credentials, accessed via rpc_gss_getcred().
typedef struct {
uid_t uid; /* user ID */
gid_t gid; /* group ID */
short gidlen;
gid_t *gidlist; /* list of groups */
} rpc_gss_ucred_t;
rpc_gss_lock_t
Structure used to enforce a particular QOP and service.
typedef struct {
bool_t locked;
rpc_gss_rawcred_t *raw_cred;
} rpc_gss_lock_t;
rpc_gss_callback_t
Callback structure used by rpc_gss_set_callback().
typedef struct {
u_int program; /* RPC program number */
u_int version; /* RPC version number */
/* user defined callback */
bool_t (*callback)(struct svc_req *req,
gss_cred_id_t deleg,
gss_ctx_id_t gss_context,
rpc_gss_lock_t *lock,
void **cookie);
} rpc_gss_callback_t;
rpc_gss_error_t
Structure used to return error information by rpc_gss_get_error().
typedef struct {
int rpc_gss_error;
int system_error; /* same as errno */
} rpc_gss_error_t;
/*
* Values for rpc_gss_error
*/
#define RPC_GSS_ER_SUCCESS 0 /* no error */
#define RPC_GSS_ER_SYSTEMERROR 1 /* system error */
π INDEX π
the whole friend group, one by one π
rpc_gss_seccreate(3)β Create a new security contextrpc_gss_set_defaults(3)β Set service and quality of protection for a contextrpc_gss_max_data_length(3)β Calculate maximum client message sizes.rpc_gss_get_error(3)β Get details of the last errorrpc_gss_mech_to_oid(3)β Convert a mechanism name to the corresponding GSS-API oid.rpc_gss_oid_to_mech(3)β Convert a GSS-API oid to a mechanism namerpc_gss_qop_to_num(3)β Convert a quality of protection name to the corresponding numberrpc_gss_get_mechanisms(3)β Get a list of security mechanisms.rpc_gss_get_mech_info(3)β Return extra information about a security mechanismrpc_gss_get_versions(3)β Return the maximum and minimum supported versions of theRPCSEC_GSSprotocolrpc_gss_is_installed(3)β Query for the presence of a particular security mechanismrpc_gss_set_svc_name(3)β Set the name of a service principal which matches a given RPC program plus version pairrpc_gss_getcred(3)β Get credential details for the security context of an RPC requestrpc_gss_set_callback(3)β Install a callback routine which is called on the server when new security contexts are createdrpc_gss_get_principal_name(3)β Create a client principal name from various stringsrpc_gss_svc_max_data_length(3)β Calculate maximum server message sizes.
π AVAILABILITY π
These functions are part of libtirpc. slay π«Ά
π₯ SEE ALSO π₯
π AUTHORS π
This manual page was written by Doug Rabson <dfr@FreeBSD.org>.
and that's the whole page bestie β this one came to you from <strong>Debian</strong>, dated <strong>January 26, 2010</strong>, and it lives in the <strong>Library Functions Manual</strong> section as <strong>RPC_GSS_SECCREATE(3)</strong>. go forth and authenticate responsibly π
β¨
π¦ where this page comes from
- alpine 3.22: libtirpc-doc 1.3.5-r0 Β· BSD-3-Clause
- alpine 3.23: libtirpc-doc 1.3.5-r1 Β· BSD-3-Clause
- alpine 3.24: libtirpc-doc 1.3.5-r1 Β· BSD-3-Clause
- arch rolling: libtirpc 1.3.8-1 Β· SISSL AND BSD-3-Clause
- centos-stream 10: libtirpc-devel 1.3.5-1.el10 Β· SISSL AND BSD-3-Clause
- centos-stream 9: libtirpc-devel 1.3.3-9.el9 Β· SISSL and BSD
- centos-stream 9: libtirpc-devel 1.3.3-9.el9 Β· SISSL and BSD
- debian bookworm: libtirpc-dev 1.3.3+ds-1 Β· BSD-3-Clause
- debian trixie: libtirpc-dev 1.3.6+ds-1 Β· BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-0.fc43 Β· SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-0.fc43 Β· SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-1.rc1.fc43 Β· SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-1.rc1.fc43 Β· SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.7-2.fc44 Β· SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.7-2.fc44 Β· SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.8-0.fc44 Β· SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.8-0.fc44 Β· SISSL AND BSD-3-Clause
- nixos 26.05: libtirpc 1.3.7
- nixpkgs unstable: libtirpc 1.3.7
- opensuse-leap 16.0: libtirpc-devel 1.3.6-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libtirpc-devel 1.3.6-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libtirpc-devel 1.3.6-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libtirpc-devel 1.3.6-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtirpc-dev 1.3.2-2build1 Β· BSD-3-Clause
- ubuntu jammy: libtirpc-dev 1.3.2-2ubuntu0.1 Β· BSD-3-Clause
- ubuntu noble: libtirpc-dev 1.3.4+ds-1.1build1 Β· BSD-3-Clause
- ubuntu questing: libtirpc-dev 1.3.6+ds-1
- ubuntu resolute: libtirpc-dev 1.3.7-0.1 Β· BSD-3-Clause
- ubuntu stonking: libtirpc-dev 1.3.7+ds-1 Β· BSD-3-Clause
- Copyright (c) 2008 Isilon Inc http://www.isilon.com/
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms