Lines Matching refs:perm
234 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
235 u8 perm = *a_perm; in tomoyo_merge_inet_acl() local
236 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
239 perm &= ~b_perm; in tomoyo_merge_inet_acl()
241 perm |= b_perm; in tomoyo_merge_inet_acl()
242 *a_perm = perm; in tomoyo_merge_inet_acl()
243 return !perm; in tomoyo_merge_inet_acl()
260 &container_of(a, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
261 u8 perm = *a_perm; in tomoyo_merge_unix_acl() local
262 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
265 perm &= ~b_perm; in tomoyo_merge_unix_acl()
267 perm |= b_perm; in tomoyo_merge_unix_acl()
268 *a_perm = perm; in tomoyo_merge_unix_acl()
269 return !perm; in tomoyo_merge_unix_acl()
294 e.perm |= 1 << type; in tomoyo_write_inet_network()
295 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_inet_network()
339 e.perm |= 1 << type; in tomoyo_write_unix_network()
340 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_unix_network()
425 if (!(acl->perm & (1 << r->param.inet_network.operation)) || in tomoyo_check_inet_acl()
454 return (acl->perm & (1 << r->param.unix_network.operation)) && in tomoyo_check_unix_acl()