Lines Matching refs:allow

88 …atic int check_extended_permissions(av_extended_perms_t *neverallow, avtab_extended_perms_t *allow)  in check_extended_permissions()  argument
92 && (allow->specified == AVTAB_XPERMS_IOCTLFUNCTION)) { in check_extended_permissions()
93 if (neverallow->driver == allow->driver) in check_extended_permissions()
94 rc = extended_permissions_and(neverallow->perms, allow->perms); in check_extended_permissions()
96 && (allow->specified == AVTAB_XPERMS_IOCTLDRIVER)) { in check_extended_permissions()
97 rc = xperm_test(neverallow->driver, allow->perms); in check_extended_permissions()
99 && (allow->specified == AVTAB_XPERMS_IOCTLFUNCTION)) { in check_extended_permissions()
100 rc = xperm_test(allow->driver, neverallow->perms); in check_extended_permissions()
102 && (allow->specified == AVTAB_XPERMS_IOCTLDRIVER)) { in check_extended_permissions()
103 rc = extended_permissions_and(neverallow->perms, allow->perms); in check_extended_permissions()
112 avtab_extended_perms_t *allow) in extended_permissions_violated() argument
116 && (allow->specified == AVTAB_XPERMS_IOCTLFUNCTION)) { in extended_permissions_violated()
118 result->driver = allow->driver; in extended_permissions_violated()
120 result->perms[i] = neverallow->perms[i] & allow->perms[i]; in extended_permissions_violated()
122 && (allow->specified == AVTAB_XPERMS_IOCTLDRIVER)) { in extended_permissions_violated()
127 && (allow->specified == AVTAB_XPERMS_IOCTLFUNCTION)) { in extended_permissions_violated()
129 result->driver = allow->driver; in extended_permissions_violated()
130 memcpy(result->perms, allow->perms, sizeof(result->perms)); in extended_permissions_violated()
132 && (allow->specified == AVTAB_XPERMS_IOCTLDRIVER)) { in extended_permissions_violated()
135 result->perms[i] = neverallow->perms[i] & allow->perms[i]; in extended_permissions_violated()