/security/selinux/ |
D | netnode.c | 70 static unsigned int sel_netnode_hashfn_ipv4(__be32 addr) in sel_netnode_hashfn_ipv4() argument 74 return (addr & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv4() 86 static unsigned int sel_netnode_hashfn_ipv6(const struct in6_addr *addr) in sel_netnode_hashfn_ipv6() argument 91 return (addr->s6_addr32[3] & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv6() 104 static struct sel_netnode *sel_netnode_find(const void *addr, u16 family) in sel_netnode_find() argument 111 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find() 114 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find() 125 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find() 129 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find() 130 addr)) in sel_netnode_find() [all …]
|
D | netlabel.c | 542 struct sockaddr *addr) in selinux_netlbl_socket_connect_helper() argument 551 if (addr->sa_family == AF_UNSPEC) { in selinux_netlbl_socket_connect_helper() 562 rc = netlbl_conn_setattr(sk, addr, secattr); in selinux_netlbl_socket_connect_helper() 582 struct sockaddr *addr) in selinux_netlbl_socket_connect_locked() argument 590 return selinux_netlbl_socket_connect_helper(sk, addr); in selinux_netlbl_socket_connect_locked() 603 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr) in selinux_netlbl_socket_connect() argument 608 rc = selinux_netlbl_socket_connect_locked(sk, addr); in selinux_netlbl_socket_connect()
|
D | hooks.c | 3744 static int selinux_mmap_addr(unsigned long addr) in selinux_mmap_addr() argument 3748 if (addr < CONFIG_LSM_MMAP_MIN_ADDR) { in selinux_mmap_addr() 5330 struct sockaddr *addr; in selinux_sctp_bind_connect() local 5344 addr = addr_buf; in selinux_sctp_bind_connect() 5345 switch (addr->sa_family) { in selinux_sctp_bind_connect() 5366 err = selinux_socket_bind(sock, addr, len); in selinux_sctp_bind_connect() 5373 err = selinux_socket_connect_helper(sock, addr, len); in selinux_sctp_bind_connect() 5388 err = selinux_netlbl_socket_connect_locked(sk, addr); in selinux_sctp_bind_connect()
|
/security/tomoyo/ |
D | network.c | 20 u8 *addr; /* This may not be '\0' terminated string. */ member 501 static int tomoyo_check_inet_address(const struct sockaddr *addr, in tomoyo_check_inet_address() argument 510 switch (addr->sa_family) { in tomoyo_check_inet_address() 516 ((struct sockaddr_in6 *) addr)->sin6_addr.s6_addr; in tomoyo_check_inet_address() 517 i->port = ((struct sockaddr_in6 *) addr)->sin6_port; in tomoyo_check_inet_address() 524 &((struct sockaddr_in *) addr)->sin_addr; in tomoyo_check_inet_address() 525 i->port = ((struct sockaddr_in *) addr)->sin_port; in tomoyo_check_inet_address() 553 char *buf = address->unix0.addr; in tomoyo_unix_entry() 564 struct tomoyo_path_info addr; in tomoyo_unix_entry() local 566 addr.name = buf; in tomoyo_unix_entry() [all …]
|
D | tomoyo.c | 453 static int tomoyo_socket_connect(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_connect() argument 456 return tomoyo_socket_connect_permission(sock, addr, addr_len); in tomoyo_socket_connect() 468 static int tomoyo_socket_bind(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_bind() argument 471 return tomoyo_socket_bind_permission(sock, addr, addr_len); in tomoyo_socket_bind()
|
D | common.h | 996 int tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr, 999 struct sockaddr *addr, int addr_len);
|
/security/selinux/include/ |
D | netlabel.h | 55 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr); 57 struct sockaddr *addr); 102 struct sockaddr *addr) in selinux_netlbl_conn_setsid() argument 145 struct sockaddr *addr) in selinux_netlbl_socket_connect() argument 150 struct sockaddr *addr) in selinux_netlbl_socket_connect_locked() argument
|
D | netnode.h | 22 int sel_netnode_sid(void *addr, u16 family, u32 *sid);
|
D | objsec.h | 94 } addr; member
|
D | security.h | 311 u16 domain, void *addr, u32 addrlen,
|
/security/ |
D | lsm_audit.c | 185 struct in6_addr *addr, __be16 port, in print_ipv6_addr() argument 188 if (!ipv6_addr_any(addr)) in print_ipv6_addr() 189 audit_log_format(ab, " %s=%pI6c", name1, addr); in print_ipv6_addr() 194 static inline void print_ipv4_addr(struct audit_buffer *ab, __be32 addr, in print_ipv4_addr() argument 197 if (addr) in print_ipv4_addr() 198 audit_log_format(ab, " %s=%pI4", name1, &addr); in print_ipv4_addr() 324 struct unix_address *addr; in dump_common_audit_data() local 355 addr = smp_load_acquire(&u->addr); in dump_common_audit_data() 356 if (!addr) in dump_common_audit_data() 362 len = addr->len-sizeof(short); in dump_common_audit_data() [all …]
|
D | commoncap.c | 1344 int cap_mmap_addr(unsigned long addr) in cap_mmap_addr() argument 1348 if (addr < dac_mmap_min_addr) { in cap_mmap_addr()
|
D | security.c | 1487 int security_mmap_addr(unsigned long addr) in security_mmap_addr() argument 1489 return call_int_hook(mmap_addr, 0, addr); in security_mmap_addr()
|
/security/integrity/ |
D | iint.c | 226 void *addr, unsigned long count) in integrity_kernel_read() argument 229 char __user *buf = (char __user *)addr; in integrity_kernel_read()
|
D | integrity.h | 144 void *addr, unsigned long count);
|
/security/selinux/ss/ |
D | policydb.h | 179 u32 addr; member 183 u32 addr[4]; member
|
D | services.c | 2530 static int match_ipv6_addrmask(u32 *input, u32 *addr, u32 *mask) in match_ipv6_addrmask() argument 2535 if (addr[i] != (input[i] & mask[i])) { in match_ipv6_addrmask() 2569 u32 addr; in security_node_sid() local 2575 addr = *((u32 *)addrp); in security_node_sid() 2579 if (c->u.node.addr == (addr & c->u.node.mask)) in security_node_sid() 2592 if (match_ipv6_addrmask(addrp, c->u.node6.addr, in security_node_sid()
|
D | policydb.c | 2145 c->u.node.addr = nodebuf[0]; /* network order */ in ocontext_read() 2180 c->u.node6.addr[k] = nodebuf[k]; in ocontext_read() 3146 nodebuf[0] = c->u.node.addr; /* network order */ in ocontext_write() 3171 nodebuf[j] = c->u.node6.addr[j]; /* network order */ in ocontext_write()
|
/security/apparmor/include/ |
D | audit.h | 136 void *addr; member
|
/security/smack/ |
D | smack_lsm.c | 4120 struct sockaddr_in addr; in smack_inet_conn_request() local 4194 addr.sin_addr.s_addr = hdr->saddr; in smack_inet_conn_request() 4196 hskp = smack_ipv4host_label(&addr); in smack_inet_conn_request()
|