Searched refs:ip (Results 1 – 4 of 4) sorted by relevance
/security/tomoyo/ |
D | network.c | 52 u8 * const min = ptr->ip[0].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union() 53 u8 * const max = ptr->ip[1].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union() 61 ptr->ip[1].s6_addr32[0] = ptr->ip[0].s6_addr32[0]; in tomoyo_parse_ipaddr_union() 127 tomoyo_print_ipv6(buf, size, &ptr->ip[0], &ptr->ip[1]); in tomoyo_print_ip() 129 tomoyo_print_ipv4(buf, size, &ptr->ip[0].s6_addr32[0], in tomoyo_print_ip() 130 &ptr->ip[1].s6_addr32[0]); in tomoyo_print_ip() 434 memcmp(&acl->address.ip[0], in tomoyo_check_inet_acl() 437 &acl->address.ip[1], size) <= 0; in tomoyo_check_inet_acl()
|
D | group.c | 191 if (memcmp(&member->address.ip[0], address, size) > 0 || in tomoyo_address_matches_group() 192 memcmp(address, &member->address.ip[1], size) > 0) in tomoyo_address_matches_group()
|
D | common.h | 531 struct in6_addr ip[2]; /* Big endian. */ member 1262 return !memcmp(a->ip, b->ip, sizeof(a->ip)) && a->group == b->group && in tomoyo_same_ipaddr_union()
|
/security/smack/ |
D | smack_lsm.c | 208 static struct smack_known *smk_fetch(const char *name, struct inode *ip, in smk_fetch() argument 215 if (ip->i_op->getxattr == NULL) in smk_fetch() 222 rc = ip->i_op->getxattr(dp, name, buffer, SMK_LONGLABEL); in smk_fetch() 869 struct inode *ip = dentry->d_inode; in smack_inode_unlink() local 879 rc = smk_curacc(smk_of_inode(ip), MAY_WRITE, &ad); in smack_inode_unlink() 880 rc = smk_bu_inode(ip, MAY_WRITE, rc); in smack_inode_unlink() 1243 struct inode *ip = (struct inode *)inode; in smack_inode_getsecurity() local 1252 sbp = ip->i_sb; in smack_inode_getsecurity() 1256 sock = SOCKET_I(ip); in smack_inode_getsecurity()
|