Home
last modified time | relevance | path

Searched refs:authname (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/lib/policykit/libpolkit/common/
H A Dlibpolkit-rbac.c129 char *authname; in libpolkit_is_uid_allowed_for_privilege() local
144 authname = "solaris.device.mount.removable"; in libpolkit_is_uid_allowed_for_privilege()
148 authname = "solaris.device.mount.fixed"; in libpolkit_is_uid_allowed_for_privilege()
150 authname = "solaris.device.mount.alloptions.fixed"; in libpolkit_is_uid_allowed_for_privilege()
152 authname = "solaris.system.power.suspend.ram"; in libpolkit_is_uid_allowed_for_privilege()
163 authname = "solaris.system.power.cpu"; in libpolkit_is_uid_allowed_for_privilege()
166 authname = g_strdup (privilege); in libpolkit_is_uid_allowed_for_privilege()
168 for (i = 0; i < strlen (authname); i++) { in libpolkit_is_uid_allowed_for_privilege()
169 if (authname[i] == '-') { in libpolkit_is_uid_allowed_for_privilege()
170 authname[i] = '.'; in libpolkit_is_uid_allowed_for_privilege()
[all …]
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dfuncs.c231 char *authname; in check_auth() local
243 authname = strtok(tmp, AUTH_SEP); in check_auth()
246 return (authname); in check_auth()
249 while (authname != NULL) { in check_auth()
255 return (authname); in check_auth()
263 return (authname); in check_auth()
268 result = getauthnam(authname); in check_auth()
272 return (authname); in check_auth()
280 strcpy(authtoks, authname); in check_auth()
291 return (authname); in check_auth()
[all …]
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dchkauthattr.c350 _is_authorized(const char *auth, void *authname, void *res) in _is_authorized() argument
358 auth_len = strlen(authname); in _is_authorized()
359 if ((slash = strchr(authname, KV_OBJECTCHAR)) != NULL) { in _is_authorized()
367 if (strcmp(authname, auth) == 0) { in _is_authorized()
372 if (_auth_match_noun(auth, authname, in _is_authorized()
383 chkauthattr(const char *authname, const char *username) in chkauthattr() argument
387 if (authname == NULL || username == NULL) in chkauthattr()
390 (void) _enum_auths(username, _is_authorized, (char *)authname, in chkauthattr()
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-shared.c678 char *authname; local
682 authname = g_strdup ("solaris.device.mount.removable");
684 authname = g_strdup ("solaris.device.mount.alloptions.removable");
686 authname = g_strdup ("solaris.device.mount.fixed");
688 authname = g_strdup ("solaris.device.mount.alloptions.fixed");
691 authname = g_strdup (privilege);
692 for (i = 0; i < strlen (authname); i++) {
693 if (authname[i] == '-') {
694 authname[i] = '.';
698 return (authname);
/illumos-gate/usr/src/cmd/vntsd/
H A Dauth.c121 char authname[VNTSD_AUTH_PREFIXLEN + MAXPATHLEN]; in auth_check_username() local
130 (void) snprintf(authname, len, VNTSD_AUTH_GRPCONS"%s", group_name); in auth_check_username()
141 auth_granted = chkauthattr(authname, username); in auth_check_username()
/illumos-gate/usr/src/cmd/auths/
H A Dauths.c142 add_auth(const char *authname, void *ctxt, void *res) in add_auth() argument
158 cbs->auths[cbs->auth_cnt] = strdup(authname); in add_auth()
/illumos-gate/usr/src/cmd/su/
H A Dsu.c195 char *authname; in main() local
286 authname = nptr; in main()
288 if (((user_entry = getusernam(authname)) != NULL)) { in main()
300 authname = cuserid(NULL); in main()
307 if (authname == NULL) in main()
310 if (pam_start(embedded ? EMBEDDED_NAME : "su", authname, in main()
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1750 char authname[MAXAUTHS]; in main() local
1921 (void) snprintf(authname, MAXAUTHS, "%s%s%s", in main()
1923 if (chkauthattr(authname, username) == 0) { in main()
1930 (void) snprintf(authname, MAXAUTHS, "%s%s%s", in main()
1937 } else if (chkauthattr(authname, username) == 0) { in main()
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c1566 char authname[MAXAUTHS]; in auth_check() local
1573 (void) strlcpy(authname, ZONE_CLONEFROM_AUTH, MAXAUTHS); in auth_check()
1593 (void) strlcpy(authname, ZONE_MANAGE_AUTH, MAXAUTHS); in auth_check()
1596 (void) strlcat(authname, KV_OBJECT, MAXAUTHS); in auth_check()
1597 (void) strlcat(authname, zone, MAXAUTHS); in auth_check()
1598 if (chkauthattr(authname, user) == 0) { in auth_check()
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c7846 char authname[MAXAUTHS]; in zonecfg_valid_auths() local
7856 (void) snprintf(authname, MAXAUTHS, "%s%s", in zonecfg_valid_auths()
7858 if (getauthnam(authname) == NULL) { in zonecfg_valid_auths()