/illumos-gate/usr/src/lib/pam_modules/tsol_acct/ |
H A D | tsol_acct.c | 63 char *rhost; local 85 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 90 "rhost %s", 94 (rhost == NULL) ? "NULL" : (rhost == '\0') ? "ZERO" : 95 rhost); 131 (rhost != NULL && *rhost != '\0')) { 134 host_type = tsol_getrhtype(rhost);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | docmd.c | 54 static void notify(char *file, char *rhost, struct namelist *to, time_t lmod); 60 static void doarrow(char **filev, struct namelist *files, char *rhost, 62 static int makeconn(char *rhost); 172 doarrow(filev, files, rhost, cmds) 175 char *rhost; 184 printf("doarrow(%x, %s, %x)\n", files, rhost, cmds); 194 printf("updating host %s\n", rhost); 199 if (!makeconn(rhost)) 235 notify(Tmpfile, rhost, sc->sc_args, 0); 272 * Create a connection to the rdist server on the machine rhost [all...] |
/illumos-gate/usr/src/lib/libbc/libc/net/ |
H A D | rcmd.c | 198 const char *rhost, 214 sp = rhost; 219 baselen = sp - rhost; 278 _validuser(FILE *hostf, char *rhost, char *luser, char *ruser, int baselen) argument 308 hostmatch = innetgr(ahost + 2, rhost, 311 if (innetgr(ahost + 2, rhost, NULL, domain)) 315 if (_checkhost(rhost, ahost+1, baselen)) 319 hostmatch = _checkhost(rhost, ahost, baselen); 347 _checkhost(char *rhost, char *lhost, int len) argument 361 return(!strcmp(rhost, lhos 197 ruserok( const char *rhost, int superuser, const char *ruser, const char *luser) argument [all...] |
/illumos-gate/usr/src/lib/pam_modules/roles/ |
H A D | roles.c | 57 char *rhost; local 68 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 90 "ruser = %s rhost = %s\n", (service) ? service : "not set", 93 (rhost) ? rhost: "not set"); 155 if ((rhost != NULL && *rhost != '\0') &&
|
/illumos-gate/usr/src/lib/pam_modules/list/ |
H A D | list.c | 72 char *rhost; local 175 (void) pam_get_item(pamh, PAM_RHOST, (void**)&rhost); 177 if ((check_host || check_exact) && ((rhost == NULL) || 178 (*rhost == '\0'))) { 180 rhost = hostname; 191 (rhost != NULL) ? rhost : "", username); 291 if (innetgr(bufp, rhost, username, 304 hostok = innetgr(bufp, rhost, NULL,
|
/illumos-gate/usr/src/lib/libast/common/uwin/ |
H A D | rcmd.c | 319 extern int ruserok(const char *rhost, int superuser, const char *ruser, const char *luser) argument 330 sp = rhost; 335 baselen = sp - rhost; 380 _validuser(FILE *hostf, const char *rhost, const char *luser, argument 430 && _checkhost(rhost, &ahost[1], baselen)) 434 && _checknetgrouphost(rhost, &ahost[2], baselen)) 446 hostvalid = _checknetgrouphost(rhost, &ahost[2], baselen); 448 hostvalid = _checkhost(rhost, ahost, baselen); 459 hostvalid = hostvalid ? 1 : _checkhost(rhost, ahost, baselen); 471 _checkhost(const char *rhost, cons argument 507 _checknetgrouphost(const char *rhost, const char *netgr, int baselen) argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | fwd_tgt.c | 41 krb5_fwd_tgt_creds(krb5_context context, krb5_auth_context auth_context, char *rhost, krb5_principal client, krb5_principal server, krb5_ccache cc, int forwardable, krb5_data *outbuf) argument 79 } else if (server) { /* must server be non-NULL when rhost is given? */ 150 if (rhost == NULL) { 161 rhost = malloc(server->data[1].length+1); 162 if (!rhost) { 168 (void) memcpy(rhost, server->data[1].data, server->data[1].length); 169 rhost[server->data[1].length] = '\0'; 172 retval = krb5_os_hostaddr(context, rhost, &addrs); 219 free(rhost);
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | rcmd.c | 79 static int _validuser(FILE *hostf, char *rhost, const char *luser, 81 static int _checkhost(char *rhost, char *lhost, int len); 554 ruserok(const char *rhost, int superuser, const char *ruser, const char *luser) argument 571 sp = rhost; 576 baselen = (int)(sp - rhost); 653 _validuser(FILE *hostf, char *rhost, const char *luser, argument 716 hostmatch = innetgr(uchost + 2, rhost, 719 hostmatch = innetgr(ahost + 2, rhost, 723 if (innetgr(uchost + 2, rhost, NULL, domain)) 726 if (innetgr(ahost + 2, rhost, NUL 771 _checkhost(char *rhost, char *lhost, int len) argument [all...] |
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 130 char user[33], ttyn[33], rhost[258]; local 144 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); 145 rhost[sizeof (up->ut_host)] = '\0'; 150 (void) pam_set_item(pamh, PAM_RHOST, rhost);
|
/illumos-gate/usr/src/lib/pam_modules/unix_session/ |
H A D | unix_session.c | 91 char *ttyn, *rhost, *user; local 118 (error = pam_get_item(pamh, PAM_RHOST, (void **)&rhost)) 169 if (rhost != NULL) { 170 (void) strlcpy(newll.ll_host, rhost,
|
/illumos-gate/usr/src/lib/pam_modules/authtok_get/ |
H A D | authtok_get.c | 298 char *rhost = NULL; local 311 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 315 if (rhost == NULL || *rhost == '\0') 316 rhost = "localhost"; 319 "%s from %s.", service, user, rhost);
|
/illumos-gate/usr/src/cmd/rexd/ |
H A D | on.c | 206 char *rhost, **cmdp; local 233 if ((rhost = strrchr(argv[0], '/')) == NULL) { 234 rhost = argv[0]; 236 rhost++; 264 if (strcmp(rhost, CommandName) && strcmp(rhost, AltCommandName)) { 270 rhost = argv[1]; 280 if ((hp = gethostbyname(rhost)) == NULL) { 281 fprintf(stderr, "on: unknown host %s\n", rhost); 291 rhost, inet_nto [all...] |
H A D | unix_login.c | 348 char *rhost; local 358 pam_get_item(pamh, PAM_RHOST, (void **) &rhost) != PAM_SUCCESS || 369 if (rhost != NULL && rhost[0] != '\0') { 370 (void) strcpy(set_utmp.ut_host, rhost); 371 tmplen = strlen(rhost) + 1; 422 char rhost[sizeof (ut.ut_host) + 1]; local 447 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); 448 rhost[sizeof (up->ut_host)] = '\0'; 453 (void) pam_set_item(pamh, PAM_RHOST, rhost); [all...] |
/illumos-gate/usr/src/lib/pam_modules/unix_account/ |
H A D | unix_acct.c | 450 char *rhost = NULL; local 453 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 458 (rhost != NULL && *rhost != '\0') ? rhost : "local host"); 469 char *rhost = NULL; local 472 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 477 (rhost != NULL && *rhost != '\0') ? rhost [all...] |
/illumos-gate/usr/src/lib/pam_modules/unix_cred/ |
H A D | unix_cred.c | 181 char *rhost; local 217 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); 221 "pam_unix_cred: user = %s, auser = %s, rhost = %s, " 225 (rhost == NULL) ? "NULL" : (*rhost == '\0') ? "ZERO" : 226 rhost, 284 if ((rhost == NULL || *rhost == '\0')) { 310 if (adt_load_hostname(rhost, &termid) != 0) {
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | netdb.h | 146 int ruserok(const char *rhost, int suser, const char *ruser, const char *luser);
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_getrhent.c | 220 tsol_getrhtype(char *rhost) { argument 228 if ((hp = getipnodebyname(rhost, AF_INET6,
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sac.c | 468 char rhost[sizeof (up->ut_host) + 1]; local 494 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); 495 rhost[sizeof (up->ut_host)] = '\0'; 500 (void) pam_set_item(pamh, PAM_RHOST, rhost);
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_filter.c | 337 __in uint32_t rhost, 350 spec->efs_rem_host.eo_u32[0] = rhost; 458 uint32_t rhost, host1, host2; local 503 rhost = is_full ? gen_spec->efs_rem_host.eo_u32[0] : 0; 507 host2 = rhost; 509 host1 = rhost; 332 efx_filter_spec_set_ipv4_full( __inout efx_filter_spec_t *spec, __in uint8_t proto, __in uint32_t lhost, __in uint16_t lport, __in uint32_t rhost, __in uint16_t rport) argument
|
H A D | efx.h | 2231 __in uint32_t rhost,
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rlogind.c | 1512 char rhost[sizeof (up->ut_host) + 1]; local 1534 (void) strlcpy(rhost, up->ut_host, 1535 sizeof (rhost)); 1547 rhost);
|
H A D | in.telnetd.c | 4477 char rhost[sizeof (up->ut_host) + 1]; local 4503 (void) strlcpy(rhost, up->ut_host, 4504 sizeof (rhost)); 4510 rhost);
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumptape.c | 1257 char *rhost = host; local 1264 if (rmthost(rhost, ntrec) == 0) { 1269 if (rhost != host) 1270 free(rhost);
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_io.c | 1996 char *rhost; local 2286 rhost = rdc_set->secondary.intf; 2289 rhost = rdc_set->primary.intf; 2296 svp = rdc_create_svinfo(rhost, addrp, urdc->netconfig); 4147 char *rhost; local 4413 rhost = rdc_set->secondary.intf; 4416 rhost = rdc_set->primary.intf; 4423 svp = rdc_create_svinfo(rhost, addrp, urdc->netconfig);
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_nfs.c | 679 char *p, *host, *rhost, *dir; local 1160 rhost = strdup(host); 1161 if (rhost == NULL) { 1168 (void) sprintf(remname, "%s:%s", rhost, dir); 2219 mnttabcnt += strlen(rhost) + 2;
|