Lines Matching refs:gid_flags

160 	flags_t		 gid_flags; /* See MDF_* above. */  member
482 flags_t *const gid_flags) in parse_gid_flags() argument
490 *gid_flags |= MDF_MAY_REJ_SUPP; in parse_gid_flags()
494 *gid_flags |= MDF_MAY_REJ_SUPP; in parse_gid_flags()
497 *gid_flags |= MDF_HAS_SUPP_CLAUSE; in parse_gid_flags()
529 flags_t gid_flags = 0; in parse_target_clause() local
537 to_type += parse_gid_flags(to_type, &is.flags, &gid_flags); in parse_target_clause()
561 gid_flags |= MDF_HAS_PRIMARY_CLAUSE; in parse_target_clause()
566 tflags = &rule->gid_flags; in parse_target_clause()
583 *tflags |= gid_flags | MDF_ANY; in parse_target_clause()
603 *tflags |= gid_flags | MDF_ANY_SUPP; in parse_target_clause()
627 *tflags |= gid_flags; in parse_target_clause()
678 has_clauses(rule->gids_nb, rule->gid_flags)) { in parse_target_clause()
685 rule->gid_flags |= MDF_ANY | MDF_ANY_SUPP | in parse_target_clause()
960 if (!has_clauses(new->gids_nb, new->gid_flags)) { in parse_single_rule()
962 MPASS(new->gid_flags == 0); in parse_single_rule()
963 new->gid_flags = MDF_CURRENT | MDF_PRIMARY | MDF_SUPP_MUST | in parse_single_rule()
965 check_type_and_type_flags(IT_GID, new->gid_flags); in parse_single_rule()
1648 const flags_t gid_flags = rule->gid_flags; in rule_grant_supplementary_groups() local
1649 const bool current_has_supp = (gid_flags & MDF_CURRENT) != 0 && in rule_grant_supplementary_groups()
1650 (gid_flags & MDF_SUPP_MASK) != 0; in rule_grant_supplementary_groups()
1654 if ((gid_flags & MDF_ANY_SUPP) != 0 && in rule_grant_supplementary_groups()
1655 (gid_flags & MDF_MAY_REJ_SUPP) == 0) in rule_grant_supplementary_groups()
1666 if ((gid_flags & MDF_ANY_SUPP) != 0) in rule_grant_supplementary_groups()
1682 if ((gid_flags & MDF_SUPP_MUST) != 0) in rule_grant_supplementary_groups()
1685 switch (gid_flags & MDF_SUPP_MASK) { in rule_grant_supplementary_groups()
1761 if ((gid_flags & MDF_CURRENT) != 0 && in rule_grant_supplementary_groups()
1762 (gid_flags & MDF_SUPP_MUST) != 0 && in rule_grant_supplementary_groups()
1769 if ((gid_flags & MDF_EXPLICIT_SUPP_MUST) != 0) { in rule_grant_supplementary_groups()
1789 if ((rule->gid_flags & MDF_ANY) != 0) in rule_grant_primary_group()
1793 if ((rule->gid_flags & MDF_CURRENT) != 0 && in rule_grant_primary_group()
1795 error = grant_primary_group_from_flags(rule->gid_flags); in rule_grant_primary_group()
1821 if ((rule->gid_flags & MDF_ANY) != 0) in rule_grant_primary_groups()