Lines Matching defs:vbuf

2378 	char *buf = ci->vbuf;
2511 char *vbuf = ci->vbuf;
2525 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2526 SCF_PROPERTY_USER, vbuf, vbuf_sz, prop,
2531 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) {
2535 "error %d.", SCF_PROPERTY_USER, vbuf, r));
2538 if (!(get_astring_val(methpg, SCF_PROPERTY_GROUP, vbuf, vbuf_sz, prop,
2539 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf,
2542 (void) strcpy(vbuf, ":default");
2550 if (strcmp(vbuf, ":default") != 0) {
2551 ci->gid = get_gid(vbuf);
2555 SCF_PROPERTY_GROUP, vbuf));
2583 if (!(get_astring_val(methpg, SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz,
2585 SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz, prop, val) == 0)) {
2587 (void) strcpy(vbuf, ":default");
2595 if (strcmp(vbuf, ":default") != 0) {
2596 switch (r = get_groups(vbuf, ci)) {
2604 vbuf));
2609 vbuf));
2618 if (!(get_astring_val(methpg, SCF_PROPERTY_PRIVILEGES, vbuf, vbuf_sz,
2620 vbuf, vbuf_sz, prop, val) == 0)) {
2622 (void) strcpy(vbuf, ":default");
2634 if (strcmp(vbuf, ":default") != 0) {
2635 ci->priv_set = priv_str_to_set(vbuf, ",", NULL);
2644 SCF_PROPERTY_PRIVILEGES, vbuf));
2649 if (!(get_astring_val(methpg, SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf,
2651 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf, vbuf_sz, prop, val) == 0)) {
2653 (void) strcpy(vbuf, ":default");
2661 if (strcmp(vbuf, ":default") == 0)
2667 (void) strcpy(vbuf, "zone");
2669 ci->lpriv_set = priv_str_to_set(vbuf, ",", NULL);
2676 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf));
2718 ret = scf_value_get_as_string(val, mcp->vbuf, mcp->vbuf_sz);
2724 if ((mcp->env[i] = strdup(mcp->vbuf)) == NULL) {
2836 cip->vbuf = malloc(cip->vbuf_sz);
2837 if (cip->vbuf == NULL) {
3045 ret = scf_value_get_astring(val, cip->vbuf, cip->vbuf_sz);
3052 (void) strcpy(cip->vbuf, ":default");
3072 if (strcmp(cip->vbuf, ":default") == 0 ||
3073 strcmp(cip->vbuf, ":home") == 0) {
3100 cip->working_dir = strdup(cip->vbuf);
3135 (void) strlcpy(cip->vbuf, ":default", cip->vbuf_sz);
3137 ret = scf_value_get_astring(val, cip->vbuf,
3147 (void) strlcpy(cip->vbuf, ":default", cip->vbuf_sz);
3174 if (strcmp(cip->vbuf, ":default") != 0) {
3175 if (secflags_parse(NULL, cip->vbuf,
3178 "security flags: %s", cip->vbuf);
3213 ret = scf_value_get_astring(val, cip->vbuf,
3217 cip->corefile_pattern = strdup(cip->vbuf);
3279 (void) strcpy(cip->vbuf, ":default");
3281 ret = scf_value_get_astring(val, cip->vbuf,
3288 (void) strcpy(cip->vbuf, ":default");
3291 switch (ret = get_projid(cip->vbuf, cip)) {
3302 cip->vbuf);
3323 "Project ID \"%s\" too big.", cip->vbuf);
3328 "Project ID \"%s\" is invalid.", cip->vbuf);
3366 (void) strcpy(cip->vbuf, ":default");
3368 ret = scf_value_get_astring(val, cip->vbuf,
3379 (void) strcpy(cip->vbuf, ":default");
3399 if (strcmp(cip->vbuf, ":default") != 0) {
3400 cip->resource_pool = strdup(cip->vbuf);
3415 free(cip->vbuf);
3444 free(cip->vbuf);