/security/selinux/ |
D | netnode.c | 69 static unsigned int sel_netnode_hashfn_ipv4(__be32 addr) in sel_netnode_hashfn_ipv4() argument 73 return (addr & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv4() 85 static unsigned int sel_netnode_hashfn_ipv6(const struct in6_addr *addr) in sel_netnode_hashfn_ipv6() argument 90 return (addr->s6_addr32[3] & (SEL_NETNODE_HASH_SIZE - 1)); in sel_netnode_hashfn_ipv6() 103 static struct sel_netnode *sel_netnode_find(const void *addr, u16 family) in sel_netnode_find() argument 110 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find() 113 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find() 124 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find() 128 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find() 129 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 | 3881 static int selinux_mmap_addr(unsigned long addr) in selinux_mmap_addr() argument 3885 if (addr < CONFIG_LSM_MMAP_MIN_ADDR) { in selinux_mmap_addr() 5474 struct sockaddr *addr; in selinux_sctp_bind_connect() local 5488 addr = addr_buf; in selinux_sctp_bind_connect() 5489 switch (addr->sa_family) { in selinux_sctp_bind_connect() 5510 err = selinux_socket_bind(sock, addr, len); in selinux_sctp_bind_connect() 5517 err = selinux_socket_connect_helper(sock, addr, len); in selinux_sctp_bind_connect() 5532 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 | 445 static int tomoyo_socket_connect(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_connect() argument 448 return tomoyo_socket_connect_permission(sock, addr, addr_len); in tomoyo_socket_connect() 460 static int tomoyo_socket_bind(struct socket *sock, struct sockaddr *addr, in tomoyo_socket_bind() argument 463 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/ |
D | lsm_audit.c | 185 const 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() 325 struct unix_address *addr; in dump_common_audit_data() local 356 addr = smp_load_acquire(&u->addr); in dump_common_audit_data() 357 if (!addr) in dump_common_audit_data() 363 len = addr->len-sizeof(short); in dump_common_audit_data() [all …]
|
D | commoncap.c | 1429 int cap_mmap_addr(unsigned long addr) in cap_mmap_addr() argument 1433 if (addr < dac_mmap_min_addr) { in cap_mmap_addr()
|
D | security.c | 1622 int security_mmap_addr(unsigned long addr) in security_mmap_addr() argument 1624 return call_int_hook(mmap_addr, 0, addr); in security_mmap_addr()
|
/security/selinux/include/ |
D | netlabel.h | 55 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr); 57 struct sockaddr *addr); 139 struct sockaddr *addr) in selinux_netlbl_socket_connect() argument 144 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 | 93 } addr; member
|
D | security.h | 371 u16 domain, void *addr, u32 addrlen,
|
/security/integrity/ |
D | iint.c | 226 void *addr, unsigned long count) in integrity_kernel_read() argument 228 return __kernel_read(file, addr, count, &offset); in integrity_kernel_read()
|
D | integrity.h | 151 void *addr, unsigned long count);
|
/security/selinux/ss/ |
D | policydb.h | 183 u32 addr; member 187 u32 addr[4]; member
|
D | services.c | 2637 static int match_ipv6_addrmask(u32 *input, u32 *addr, u32 *mask) in match_ipv6_addrmask() argument 2642 if (addr[i] != (input[i] & mask[i])) { in match_ipv6_addrmask() 2683 u32 addr; in security_node_sid() local 2689 addr = *((u32 *)addrp); in security_node_sid() 2693 if (c->u.node.addr == (addr & c->u.node.mask)) in security_node_sid() 2706 if (match_ipv6_addrmask(addrp, c->u.node6.addr, in security_node_sid()
|
D | policydb.c | 2288 c->u.node.addr = nodebuf[0]; /* network order */ in ocontext_read() 2323 c->u.node6.addr[k] = nodebuf[k]; in ocontext_read() 3324 nodebuf[0] = c->u.node.addr; /* network order */ in ocontext_write() 3349 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 | 4150 struct sockaddr_in addr; in smack_inet_conn_request() local 4212 addr.sin_addr.s_addr = hdr->saddr; in smack_inet_conn_request() 4214 hskp = smack_ipv4host_label(&addr); in smack_inet_conn_request()
|