Lines Matching defs:sf
34 secflag_isset(secflagset_t flags, secflag_t sf)
36 return ((flags & secflag_to_bit(sf)) != 0);
40 secflag_clear(secflagset_t *flags, secflag_t sf)
42 *flags &= ~secflag_to_bit(sf);
46 secflag_set(secflagset_t *flags, secflag_t sf)
48 *flags |= secflag_to_bit(sf);
106 psecflags_validate_delta(const psecflags_t *sf, const secflagdelta_t *delta)
113 if (!secflags_issubset(delta->psd_assign, sf->psf_upper) ||
114 !secflags_issuperset(delta->psd_assign, sf->psf_lower)) {
123 if (!secflags_issubset(delta->psd_add, sf->psf_upper)) {
131 sf->psf_lower)) {
145 psecflags_validate(const psecflags_t *sf)
147 if (!secflags_issubset(sf->psf_lower, PROC_SEC_MASK) ||
148 !secflags_issubset(sf->psf_inherit, PROC_SEC_MASK) ||
149 !secflags_issubset(sf->psf_effective, PROC_SEC_MASK) ||
150 !secflags_issubset(sf->psf_upper, PROC_SEC_MASK))
153 if (!secflags_issubset(sf->psf_lower, sf->psf_inherit))
155 if (!secflags_issubset(sf->psf_lower, sf->psf_upper))
157 if (!secflags_issubset(sf->psf_inherit, sf->psf_upper))
164 psecflags_default(psecflags_t *sf)
166 secflags_zero(&sf->psf_effective);
167 secflags_zero(&sf->psf_inherit);
168 secflags_zero(&sf->psf_lower);
169 secflags_fullset(&sf->psf_upper);
198 secflag_to_str(secflag_t sf)
203 if (sf == fd->value)