Home
last modified time | relevance | path

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

/security/lockdown/
Dlockdown.c94 int i, offset = 0; in lockdown_read() local
103 offset += sprintf(temp+offset, "[%s] ", label); in lockdown_read()
105 offset += sprintf(temp+offset, "%s ", label); in lockdown_read()
110 if (offset > 0) in lockdown_read()
111 temp[offset-1] = '\n'; in lockdown_read()
/security/selinux/ss/
Debitmap.c115 u32 offset; in ebitmap_netlbl_export() local
129 offset = e_iter->startbit; in ebitmap_netlbl_export()
134 offset, in ebitmap_netlbl_export()
140 offset += EBITMAP_UNIT_SIZE; in ebitmap_netlbl_export()
168 u32 offset = 0, idx; in ebitmap_netlbl_import() local
172 rc = netlbl_catmap_getlong(catmap, &offset, &bitmap); in ebitmap_netlbl_import()
175 if (offset == (u32)-1) in ebitmap_netlbl_import()
180 offset += EBITMAP_UNIT_SIZE; in ebitmap_netlbl_import()
185 offset >= e_iter->startbit + EBITMAP_SIZE) { in ebitmap_netlbl_import()
190 e_iter->startbit = offset - (offset % EBITMAP_SIZE); in ebitmap_netlbl_import()
[all …]
/security/
Dlsm_audit.c112 int offset, ret = 0; in ipv6_skb_to_auditdata() local
124 offset = skb_network_offset(skb); in ipv6_skb_to_auditdata()
125 offset += sizeof(*ip6); in ipv6_skb_to_auditdata()
127 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_skb_to_auditdata()
128 if (offset < 0) in ipv6_skb_to_auditdata()
136 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in ipv6_skb_to_auditdata()
147 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in ipv6_skb_to_auditdata()
158 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in ipv6_skb_to_auditdata()
169 sh = skb_header_pointer(skb, offset, sizeof(_sctph), &_sctph); in ipv6_skb_to_auditdata()
Dsecurity.c184 int offset; in lsm_set_blob_size() local
187 offset = *lbs; in lsm_set_blob_size()
189 *need = offset; in lsm_set_blob_size()
/security/tomoyo/
Ddomain.c622 int offset = pos % PAGE_SIZE; in tomoyo_environ() local
639 pos += PAGE_SIZE - offset; in tomoyo_environ()
641 while (argv_count && offset < PAGE_SIZE) { in tomoyo_environ()
642 if (!env_page.data[offset++]) in tomoyo_environ()
646 offset = 0; in tomoyo_environ()
649 while (offset < PAGE_SIZE) { in tomoyo_environ()
650 const unsigned char c = env_page.data[offset++]; in tomoyo_environ()
682 offset = 0; in tomoyo_environ()
927 const unsigned int offset = pos % PAGE_SIZE; in tomoyo_dump_page() local
936 memcpy(dump->data + offset, kaddr + offset, in tomoyo_dump_page()
[all …]
Daudit.c31 int offset = pos % PAGE_SIZE; in tomoyo_print_bprm() local
48 pos += PAGE_SIZE - offset; in tomoyo_print_bprm()
50 while (offset < PAGE_SIZE) { in tomoyo_print_bprm()
52 const unsigned char c = kaddr[offset++]; in tomoyo_print_bprm()
100 offset = 0; in tomoyo_print_bprm()
Dcondition.c114 int offset = pos % PAGE_SIZE; in tomoyo_scan_bprm() local
134 pos += PAGE_SIZE - offset; in tomoyo_scan_bprm()
135 while (offset < PAGE_SIZE) { in tomoyo_scan_bprm()
138 const unsigned char c = kaddr[offset++]; in tomoyo_scan_bprm()
185 offset = 0; in tomoyo_scan_bprm()
/security/integrity/ima/
Dima_crypto.c333 loff_t i_size, offset; in ima_calc_file_hash_atfm() local
382 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm()
383 if (!rbuf[1] && offset) { in ima_calc_file_hash_atfm()
393 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm()
394 rc = integrity_kernel_read(file, offset, rbuf[active], in ima_calc_file_hash_atfm()
407 if (rbuf[1] && offset) { in ima_calc_file_hash_atfm()
460 loff_t i_size, offset = 0; in ima_calc_file_hash_tfm() local
482 while (offset < i_size) { in ima_calc_file_hash_tfm()
485 rbuf_len = integrity_kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_file_hash_tfm()
494 offset += rbuf_len; in ima_calc_file_hash_tfm()
Dima_template_lib.c280 u32 offset = 0; in ima_eventdigest_init_common() local
284 offset += snprintf(buffer, CRYPTO_MAX_ALG_NAME + 1, "%s", in ima_eventdigest_init_common()
286 buffer[offset] = ':'; in ima_eventdigest_init_common()
287 offset += 2; in ima_eventdigest_init_common()
291 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common()
298 offset += IMA_DIGEST_SIZE; in ima_eventdigest_init_common()
300 return ima_write_template_field_data(buffer, offset + digestsize, in ima_eventdigest_init_common()
Dima_appraise.c88 int rc, offset; in ima_fix_xattr() local
92 offset = 1; in ima_fix_xattr()
95 offset = 0; in ima_fix_xattr()
100 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
101 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
Dima_policy.c1871 int offset = 0; in ima_policy_show() local
1905 offset = 1; in ima_policy_show()
1907 seq_printf(m, pt(Opt_mask), mt(mask_exec) + offset); in ima_policy_show()
1909 seq_printf(m, pt(Opt_mask), mt(mask_write) + offset); in ima_policy_show()
1911 seq_printf(m, pt(Opt_mask), mt(mask_read) + offset); in ima_policy_show()
1913 seq_printf(m, pt(Opt_mask), mt(mask_append) + offset); in ima_policy_show()
/security/integrity/evm/
Devm_secfs.c131 int offset = 0; in evm_read_xattrs() local
159 sprintf(temp + offset, "%s\n", xattr->name); in evm_read_xattrs()
160 offset += strlen(xattr->name) + 1; in evm_read_xattrs()
/security/integrity/
Diint.c225 int integrity_kernel_read(struct file *file, loff_t offset, in integrity_kernel_read() argument
228 return __kernel_read(file, addr, count, &offset); in integrity_kernel_read()
Dintegrity.h150 int integrity_kernel_read(struct file *file, loff_t offset,
/security/selinux/
Dhooks.c4375 int offset, ihlen, ret = -EINVAL; in selinux_parse_skb_ipv4() local
4378 offset = skb_network_offset(skb); in selinux_parse_skb_ipv4()
4379 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in selinux_parse_skb_ipv4()
4401 offset += ihlen; in selinux_parse_skb_ipv4()
4402 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in selinux_parse_skb_ipv4()
4417 offset += ihlen; in selinux_parse_skb_ipv4()
4418 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in selinux_parse_skb_ipv4()
4433 offset += ihlen; in selinux_parse_skb_ipv4()
4434 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in selinux_parse_skb_ipv4()
4450 offset += ihlen; in selinux_parse_skb_ipv4()
[all …]
Dselinuxfs.c480 unsigned long offset; in sel_mmap_policy_fault() local
486 offset = vmf->pgoff << PAGE_SHIFT; in sel_mmap_policy_fault()
487 if (offset >= roundup(plm->len, PAGE_SIZE)) in sel_mmap_policy_fault()
490 page = vmalloc_to_page(plm->data + offset); in sel_mmap_policy_fault()
/security/smack/
Dsmack_lsm.c3817 int offset; in smk_skb_to_addr_ipv6() local
3828 offset = skb_network_offset(skb); in smk_skb_to_addr_ipv6()
3829 ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in smk_skb_to_addr_ipv6()
3835 offset += sizeof(_ipv6h); in smk_skb_to_addr_ipv6()
3836 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in smk_skb_to_addr_ipv6()
3837 if (offset < 0) in smk_skb_to_addr_ipv6()
3843 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in smk_skb_to_addr_ipv6()
3849 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in smk_skb_to_addr_ipv6()
3854 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in smk_skb_to_addr_ipv6()