Lines Matching refs:perm
235 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
236 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_inet_acl() local
237 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
240 perm &= ~b_perm; in tomoyo_merge_inet_acl()
242 perm |= b_perm; in tomoyo_merge_inet_acl()
243 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_inet_acl()
244 return !perm; in tomoyo_merge_inet_acl()
261 &container_of(a, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
262 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_unix_acl() local
263 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
266 perm &= ~b_perm; in tomoyo_merge_unix_acl()
268 perm |= b_perm; in tomoyo_merge_unix_acl()
269 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_unix_acl()
270 return !perm; in tomoyo_merge_unix_acl()
295 e.perm |= 1 << type; in tomoyo_write_inet_network()
296 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_inet_network()
340 e.perm |= 1 << type; in tomoyo_write_unix_network()
341 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_unix_network()
426 if (!(acl->perm & (1 << r->param.inet_network.operation)) || in tomoyo_check_inet_acl()
455 return (acl->perm & (1 << r->param.unix_network.operation)) && in tomoyo_check_unix_acl()