Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/policykit/libpolkit/common/
H A Dlibpolkit-rbac.c131 char *authname; in libpolkit_is_uid_allowed_for_privilege() local
146 authname = "solaris.device.mount.removable"; in libpolkit_is_uid_allowed_for_privilege()
148 authname = "solaris.device.mount.alloptions.removable"; in libpolkit_is_uid_allowed_for_privilege()
150 authname = "solaris.device.mount.fixed"; in libpolkit_is_uid_allowed_for_privilege()
152 authname = "solaris.device.mount.alloptions.fixed"; in libpolkit_is_uid_allowed_for_privilege()
154 authname = "solaris.system.power.suspend.ram"; in libpolkit_is_uid_allowed_for_privilege()
156 authname = "solaris.system.power.suspend.disk"; in libpolkit_is_uid_allowed_for_privilege()
159 authname = "solaris.system.shutdown"; in libpolkit_is_uid_allowed_for_privilege()
161 authname = "solaris.system.power.cpu"; in libpolkit_is_uid_allowed_for_privilege()
163 authname = "solaris.system.power.brightness"; in libpolkit_is_uid_allowed_for_privilege()
[all …]
/titanic_44/usr/src/cmd/oamuser/user/
H A Dfuncs.c233 char *authname; in check_auth() local
245 authname = strtok(tmp, AUTH_SEP); in check_auth()
248 return (authname); in check_auth()
251 while (authname != NULL) { in check_auth()
256 if (!chkauthattr(authname, pw->pw_name)) in check_auth()
257 return (authname); in check_auth()
260 if ((suffix = index(authname, KV_OBJECTCHAR)) != NULL) in check_auth()
264 if ((suffix = rindex(authname, '.')) == NULL) in check_auth()
265 return (authname); in check_auth()
270 result = getauthnam(authname); in check_auth()
[all …]
/titanic_44/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()
/titanic_44/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);
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/cmd/zlogin/
H A Dzlogin.c1749 char authname[MAXAUTHS]; in main() local
1920 (void) snprintf(authname, MAXAUTHS, "%s%s%s", in main()
1922 if (chkauthattr(authname, username) == 0) { in main()
1929 (void) snprintf(authname, MAXAUTHS, "%s%s%s", in main()
1936 } else if (chkauthattr(authname, username) == 0) { in main()
/titanic_44/usr/src/cmd/zoneadm/
H A Dzoneadm.c1556 char authname[MAXAUTHS]; in auth_check() local
1563 (void) strlcpy(authname, ZONE_CLONEFROM_AUTH, MAXAUTHS); in auth_check()
1583 (void) strlcpy(authname, ZONE_MANAGE_AUTH, MAXAUTHS); in auth_check()
1586 (void) strlcat(authname, KV_OBJECT, MAXAUTHS); in auth_check()
1587 (void) strlcat(authname, zone, MAXAUTHS); in auth_check()
1588 if (chkauthattr(authname, user) == 0) { in auth_check()
/titanic_44/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c7516 char authname[MAXAUTHS]; in zonecfg_valid_auths() local
7526 (void) snprintf(authname, MAXAUTHS, "%s%s", in zonecfg_valid_auths()
7528 if (getauthnam(authname) == NULL) { in zonecfg_valid_auths()