Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 19 of 19) sorted by relevance

/security/selinux/
Dnetnode.c80 static unsigned int sel_netnode_hashfn_ipv4(__be32 addr) in sel_netnode_hashfn_ipv4() argument
84 return (addr & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv4()
96 static unsigned int sel_netnode_hashfn_ipv6(const struct in6_addr *addr) in sel_netnode_hashfn_ipv6() argument
101 return (addr->s6_addr32[3] & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv6()
114 static struct sel_netnode *sel_netnode_find(const void *addr, u16 family) in sel_netnode_find() argument
121 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find()
124 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find()
135 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find()
139 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find()
140 addr)) in sel_netnode_find()
[all …]
Dnetlabel.c464 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr) in selinux_netlbl_socket_connect() argument
479 if (addr->sa_family == AF_UNSPEC) { in selinux_netlbl_socket_connect()
490 rc = netlbl_conn_setattr(sk, addr, secattr); in selinux_netlbl_socket_connect()
Dhooks.c3367 static int selinux_mmap_addr(unsigned long addr) in selinux_mmap_addr() argument
3371 if (addr < CONFIG_LSM_MMAP_MIN_ADDR) { in selinux_mmap_addr()
/security/tomoyo/
Dnetwork.c19 u8 *addr; /* This may not be '\0' terminated string. */ member
500 static int tomoyo_check_inet_address(const struct sockaddr *addr, in tomoyo_check_inet_address() argument
507 switch (addr->sa_family) { in tomoyo_check_inet_address()
513 ((struct sockaddr_in6 *) addr)->sin6_addr.s6_addr; in tomoyo_check_inet_address()
514 i->port = ((struct sockaddr_in6 *) addr)->sin6_port; in tomoyo_check_inet_address()
521 &((struct sockaddr_in *) addr)->sin_addr; in tomoyo_check_inet_address()
522 i->port = ((struct sockaddr_in *) addr)->sin_port; in tomoyo_check_inet_address()
550 char *buf = address->unix0.addr; in tomoyo_unix_entry()
561 struct tomoyo_path_info addr; in tomoyo_unix_entry() local
563 addr.name = buf; in tomoyo_unix_entry()
[all …]
Dtomoyo.c459 static int tomoyo_socket_connect(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_connect() argument
462 return tomoyo_socket_connect_permission(sock, addr, addr_len); in tomoyo_socket_connect()
474 static int tomoyo_socket_bind(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_bind() argument
477 return tomoyo_socket_bind_permission(sock, addr, addr_len); in tomoyo_socket_bind()
Dcommon.h985 int tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr,
988 struct sockaddr *addr, int addr_len);
/security/
Dlsm_audit.c188 struct in6_addr *addr, __be16 port, in print_ipv6_addr() argument
191 if (!ipv6_addr_any(addr)) in print_ipv6_addr()
192 audit_log_format(ab, " %s=%pI6c", name1, addr); in print_ipv6_addr()
197 static inline void print_ipv4_addr(struct audit_buffer *ab, __be32 addr, in print_ipv4_addr() argument
200 if (addr) in print_ipv4_addr()
201 audit_log_format(ab, " %s=%pI4", name1, &addr); in print_ipv4_addr()
314 struct unix_address *addr; in dump_common_audit_data() local
345 addr = smp_load_acquire(&u->addr); in dump_common_audit_data()
346 if (!addr) in dump_common_audit_data()
352 len = addr->len-sizeof(short); in dump_common_audit_data()
[all …]
Dcommoncap.c1060 int cap_mmap_addr(unsigned long addr) in cap_mmap_addr() argument
1064 if (addr < dac_mmap_min_addr) { in cap_mmap_addr()
Dsecurity.c800 int security_mmap_addr(unsigned long addr) in security_mmap_addr() argument
802 return call_int_hook(mmap_addr, 0, addr); in security_mmap_addr()
/security/selinux/include/
Dnetlabel.h66 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr);
110 struct sockaddr *addr) in selinux_netlbl_conn_setsid() argument
143 struct sockaddr *addr) in selinux_netlbl_socket_connect() argument
Dnetnode.h32 int sel_netnode_sid(void *addr, u16 family, u32 *sid);
Dobjsec.h91 } addr; member
Dsecurity.h185 int security_node_sid(u16 domain, void *addr, u32 addrlen,
/security/integrity/
Diint.c183 char *addr, unsigned long count) in integrity_kernel_read() argument
186 char __user *buf = (char __user *)addr; in integrity_kernel_read()
Dintegrity.h124 char *addr, unsigned long count);
/security/selinux/ss/
Dpolicydb.h183 u32 addr; member
187 u32 addr[4]; member
Dservices.c2257 static int match_ipv6_addrmask(u32 *input, u32 *addr, u32 *mask) in match_ipv6_addrmask() argument
2262 if (addr[i] != (input[i] & mask[i])) { in match_ipv6_addrmask()
2289 u32 addr; in security_node_sid() local
2295 addr = *((u32 *)addrp); in security_node_sid()
2299 if (c->u.node.addr == (addr & c->u.node.mask)) in security_node_sid()
2312 if (match_ipv6_addrmask(addrp, c->u.node6.addr, in security_node_sid()
Dpolicydb.c2184 c->u.node.addr = nodebuf[0]; /* network order */ in ocontext_read()
2219 c->u.node6.addr[k] = nodebuf[k]; in ocontext_read()
3124 nodebuf[0] = c->u.node.addr; /* network order */ in ocontext_write()
3149 nodebuf[j] = c->u.node6.addr[j]; /* network order */ in ocontext_write()
/security/smack/
Dsmack_lsm.c4151 struct sockaddr_in addr; in smack_inet_conn_request() local
4225 addr.sin_addr.s_addr = hdr->saddr; in smack_inet_conn_request()
4227 hskp = smack_ipv4host_label(&addr); in smack_inet_conn_request()