Home | History | Annotate | Download | only in checkpolicy

Lines Matching refs:xperms

1970 	avrule->xperms = NULL;
2071 av_extended_perms_t *xperms)
2079 xperms->perms[i] |= ~0U;
2082 xperms->perms[i] |= XPERM_SETBITS(h);
2085 xperms->perms[i] |= ~0U - XPERM_SETBITS(low);
2088 xperms->perms[i] |= XPERM_SETBITS(h) - XPERM_SETBITS(low);
2092 int avrule_xperms_used(av_extended_perms_t *xperms)
2096 for (i = 0; i < sizeof(xperms->perms)/sizeof(xperms->perms[0]); i++) {
2097 if (xperms->perms[i])
2117 av_extended_perms_t *xperms;
2120 xperms = calloc(1, sizeof(av_extended_perms_t));
2121 if (!xperms) {
2132 xperm_set(low, xperms->perms);
2134 xperm_set(high, xperms->perms);
2136 xperm_set(low, xperms->perms);
2137 xperm_set(high, xperms->perms);
2141 if (avrule_xperms_used(xperms)) {
2142 *extended_perms = xperms;
2144 free(xperms);
2155 av_extended_perms_t *xperms;
2157 xperms = calloc(1, sizeof(av_extended_perms_t));
2158 if (!xperms) {
2179 avrule_xperm_setrangebits(low, high - 1, xperms);
2182 if (avrule_xperms_used(xperms)) {
2183 xperms->driver = 0x00;
2184 xperms->specified = AVRULE_XPERMS_IOCTLDRIVER;
2185 *extended_perms = xperms;
2187 free(xperms);
2197 av_extended_perms_t *xperms;
2201 xperms = calloc(1, sizeof(av_extended_perms_t));
2202 if (!xperms) {
2228 avrule_xperm_setrangebits(low, high, xperms);
2229 xperms->driver = driver;
2230 xperms->specified = AVRULE_XPERMS_IOCTLFUNCTION;
2234 if (avrule_xperms_used(xperms)) {
2235 *extended_perms = xperms;
2237 free(xperms);
2254 unsigned int xperms_for_each_bit(unsigned int *bit, av_extended_perms_t *xperms)
2257 for (i = *bit; i < sizeof(xperms->perms)*8; i++) {
2258 if (xperm_test(i,xperms->perms)) {
2259 xperm_clear(i, xperms->perms);
2319 av_extended_perms_t *complete_driver, *partial_driver, *xperms;
2338 avrule->xperms = complete_driver;
2356 if (avrule_ioctl_func(rangelist, &xperms, i))
2359 if (xperms) {
2367 avrule->xperms = xperms;
2434 avrule->xperms = NULL;