Lines Matching defs:vbuf
2549 char *buf = ci->vbuf;
2702 char *vbuf = ci->vbuf;
2716 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2717 SCF_PROPERTY_USER, vbuf, vbuf_sz, prop,
2722 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) {
2726 "error %d.", SCF_PROPERTY_USER, vbuf, r));
2729 if (!(get_astring_val(methpg, SCF_PROPERTY_GROUP, vbuf, vbuf_sz, prop,
2730 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf,
2733 (void) strcpy(vbuf, ":default");
2741 if (strcmp(vbuf, ":default") != 0) {
2742 ci->gid = get_gid(vbuf);
2746 SCF_PROPERTY_GROUP, vbuf));
2774 if (!(get_astring_val(methpg, SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz,
2776 SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz, prop, val) == 0)) {
2778 (void) strcpy(vbuf, ":default");
2786 if (strcmp(vbuf, ":default") != 0) {
2787 switch (r = get_groups(vbuf, ci)) {
2795 vbuf));
2800 vbuf));
2809 if (!(get_astring_val(methpg, SCF_PROPERTY_PRIVILEGES, vbuf, vbuf_sz,
2811 vbuf, vbuf_sz, prop, val) == 0)) {
2813 (void) strcpy(vbuf, ":default");
2825 if (strcmp(vbuf, ":default") != 0) {
2828 if (xpol_parse_ruleset(vbuf, &ci->xpctxt, &ci->priv_set) < 0) {
2836 SCF_PROPERTY_PRIVILEGES, vbuf));
2841 if (!(get_astring_val(methpg, SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf,
2843 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf, vbuf_sz, prop, val) == 0)) {
2845 (void) strcpy(vbuf, ":default");
2853 if (strcmp(vbuf, ":default") == 0)
2859 (void) strcpy(vbuf, "zone");
2861 ci->lpriv_set = priv_str_to_set(vbuf, ",", NULL);
2868 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf));
2910 ret = scf_value_get_as_string(val, mcp->vbuf, mcp->vbuf_sz);
2916 if ((mcp->env[i] = strdup(mcp->vbuf)) == NULL) {
3028 cip->vbuf = malloc(cip->vbuf_sz);
3029 if (cip->vbuf == NULL) {
3237 ret = scf_value_get_astring(val, cip->vbuf, cip->vbuf_sz);
3244 (void) strcpy(cip->vbuf, ":default");
3264 if (strcmp(cip->vbuf, ":default") == 0 ||
3265 strcmp(cip->vbuf, ":home") == 0) {
3292 cip->working_dir = strdup(cip->vbuf);
3329 ret = scf_value_get_astring(val, cip->vbuf,
3333 cip->corefile_pattern = strdup(cip->vbuf);
3395 (void) strcpy(cip->vbuf, ":default");
3397 ret = scf_value_get_astring(val, cip->vbuf,
3404 (void) strcpy(cip->vbuf, ":default");
3407 switch (ret = get_projid(cip->vbuf, cip)) {
3418 cip->vbuf);
3439 "Project ID \"%s\" too big.", cip->vbuf);
3444 "Project ID \"%s\" is invalid.", cip->vbuf);
3482 (void) strcpy(cip->vbuf, ":default");
3484 ret = scf_value_get_astring(val, cip->vbuf,
3495 (void) strcpy(cip->vbuf, ":default");
3515 if (strcmp(cip->vbuf, ":default") != 0) {
3516 cip->resource_pool = strdup(cip->vbuf);
3531 free(cip->vbuf);
3551 free(cip->vbuf);
3554 cip->vbuf = NULL;