418 if (scf_property_get_value(prop, val) != 0)
419 goto next;
420
421 (void) scf_value_get_boolean(val, &flagval);
422
423 if (flagval != 0)
424 secflag_set(g->set, flag);
425 else
426 secflag_clear(g->set, flag);
427
428 next:
429 uu_free(pfmri);
430 scf_value_destroy(val);
431 scf_property_destroy(prop);
432 }
433 }
434
435 if (!psecflags_validate(flags))
436 return (-1);
437
438 #endif /* !NATIVE_BUILD */
439 return (0);
440 }
|
418 if (scf_property_get_value(prop, val) != 0)
419 goto next;
420
421 (void) scf_value_get_boolean(val, &flagval);
422
423 if (flagval != 0)
424 secflag_set(g->set, flag);
425 else
426 secflag_clear(g->set, flag);
427
428 next:
429 uu_free(pfmri);
430 scf_value_destroy(val);
431 scf_property_destroy(prop);
432 }
433 }
434
435 if (!psecflags_validate(flags))
436 return (-1);
437
438 return (0);
439 #else
440 assert(0);
441 abort();
442 #endif /* !NATIVE_BUILD */
443 }
|