Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 8 of 8) sorted by relevance

/security/keys/
Dtrusted.h16 #define LOAD32(buffer, offset) (ntohl(*(uint32_t *)&buffer[offset])) argument
17 #define LOAD32N(buffer, offset) (*(uint32_t *)&buffer[offset]) argument
18 #define LOAD16(buffer, offset) (ntohs(*(uint16_t *)&buffer[offset])) argument
/security/
Dlsm_audit.c114 int offset, ret = 0; in ipv6_skb_to_auditdata() local
127 offset = skb_network_offset(skb); in ipv6_skb_to_auditdata()
128 offset += sizeof(*ip6); in ipv6_skb_to_auditdata()
130 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_skb_to_auditdata()
131 if (offset < 0) in ipv6_skb_to_auditdata()
139 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in ipv6_skb_to_auditdata()
150 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in ipv6_skb_to_auditdata()
161 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in ipv6_skb_to_auditdata()
172 sh = skb_header_pointer(skb, offset, sizeof(_sctph), &_sctph); in ipv6_skb_to_auditdata()
/security/integrity/ima/
Dima_crypto.c49 loff_t i_size, offset = 0; in ima_calc_hash() local
63 while (offset < i_size) { in ima_calc_hash()
66 rbuf_len = kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_hash()
73 offset += rbuf_len; in ima_calc_hash()
/security/tomoyo/
Ddomain.c597 int offset = pos % PAGE_SIZE; in tomoyo_environ() local
614 pos += PAGE_SIZE - offset; in tomoyo_environ()
616 while (argv_count && offset < PAGE_SIZE) { in tomoyo_environ()
617 if (!env_page.data[offset++]) in tomoyo_environ()
621 offset = 0; in tomoyo_environ()
624 while (offset < PAGE_SIZE) { in tomoyo_environ()
625 const unsigned char c = env_page.data[offset++]; in tomoyo_environ()
657 offset = 0; in tomoyo_environ()
883 const unsigned int offset = pos % PAGE_SIZE; in tomoyo_dump_page() local
892 memcpy(dump->data + offset, kaddr + offset, in tomoyo_dump_page()
[all …]
Daudit.c30 int offset = pos % PAGE_SIZE; in tomoyo_print_bprm() local
46 pos += PAGE_SIZE - offset; in tomoyo_print_bprm()
48 while (offset < PAGE_SIZE) { in tomoyo_print_bprm()
50 const unsigned char c = kaddr[offset++]; in tomoyo_print_bprm()
97 offset = 0; in tomoyo_print_bprm()
Dcondition.c109 int offset = pos % PAGE_SIZE; in tomoyo_scan_bprm() local
128 pos += PAGE_SIZE - offset; in tomoyo_scan_bprm()
129 while (offset < PAGE_SIZE) { in tomoyo_scan_bprm()
132 const unsigned char c = kaddr[offset++]; in tomoyo_scan_bprm()
177 offset = 0; in tomoyo_scan_bprm()
/security/selinux/
Dhooks.c3657 int offset, ihlen, ret = -EINVAL; in selinux_parse_skb_ipv4() local
3660 offset = skb_network_offset(skb); in selinux_parse_skb_ipv4()
3661 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in selinux_parse_skb_ipv4()
3683 offset += ihlen; in selinux_parse_skb_ipv4()
3684 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in selinux_parse_skb_ipv4()
3699 offset += ihlen; in selinux_parse_skb_ipv4()
3700 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in selinux_parse_skb_ipv4()
3715 offset += ihlen; in selinux_parse_skb_ipv4()
3716 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in selinux_parse_skb_ipv4()
3739 int ret = -EINVAL, offset; in selinux_parse_skb_ipv6() local
[all …]
Dselinuxfs.c455 unsigned long offset; in sel_mmap_policy_fault() local
461 offset = vmf->pgoff << PAGE_SHIFT; in sel_mmap_policy_fault()
462 if (offset >= roundup(plm->len, PAGE_SIZE)) in sel_mmap_policy_fault()
465 page = vmalloc_to_page(plm->data + offset); in sel_mmap_policy_fault()