/security/lockdown/ |
D | lockdown.c | 119 int i, offset = 0; in lockdown_read() local 128 offset += sprintf(temp+offset, "[%s] ", label); in lockdown_read() 130 offset += sprintf(temp+offset, "%s ", label); in lockdown_read() 135 if (offset > 0) in lockdown_read() 136 temp[offset-1] = '\n'; in lockdown_read()
|
/security/selinux/ss/ |
D | ebitmap.c | 96 u32 offset; in ebitmap_netlbl_export() local 110 offset = e_iter->startbit; in ebitmap_netlbl_export() 115 offset, in ebitmap_netlbl_export() 121 offset += EBITMAP_UNIT_SIZE; in ebitmap_netlbl_export() 149 u32 offset = 0, idx; in ebitmap_netlbl_import() local 153 rc = netlbl_catmap_getlong(catmap, &offset, &bitmap); in ebitmap_netlbl_import() 156 if (offset == (u32)-1) in ebitmap_netlbl_import() 161 offset += EBITMAP_UNIT_SIZE; in ebitmap_netlbl_import() 166 offset >= e_iter->startbit + EBITMAP_SIZE) { in ebitmap_netlbl_import() 171 e_iter->startbit = offset - (offset % EBITMAP_SIZE); in ebitmap_netlbl_import() [all …]
|
/security/ |
D | lsm_audit.c | 111 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()
|
D | security.c | 147 int offset; in lsm_set_blob_size() local 150 offset = *lbs; in lsm_set_blob_size() 152 *need = offset; in lsm_set_blob_size()
|
/security/integrity/ima/ |
D | ima_crypto.c | 208 loff_t i_size, offset; in ima_calc_file_hash_atfm() local 257 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm() 258 if (!rbuf[1] && offset) { in ima_calc_file_hash_atfm() 268 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm() 269 rc = integrity_kernel_read(file, offset, rbuf[active], in ima_calc_file_hash_atfm() 282 if (rbuf[1] && offset) { in ima_calc_file_hash_atfm() 335 loff_t i_size, offset = 0; in ima_calc_file_hash_tfm() local 357 while (offset < i_size) { in ima_calc_file_hash_tfm() 360 rbuf_len = integrity_kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_file_hash_tfm() 367 offset += rbuf_len; in ima_calc_file_hash_tfm()
|
D | ima_template_lib.c | 241 u32 offset = 0; in ima_eventdigest_init_common() local 245 offset += snprintf(buffer, CRYPTO_MAX_ALG_NAME + 1, "%s", in ima_eventdigest_init_common() 247 buffer[offset] = ':'; in ima_eventdigest_init_common() 248 offset += 2; in ima_eventdigest_init_common() 252 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common() 259 offset += IMA_DIGEST_SIZE; in ima_eventdigest_init_common() 261 return ima_write_template_field_data(buffer, offset + digestsize, in ima_eventdigest_init_common()
|
D | ima_appraise.c | 63 int rc, offset; in ima_fix_xattr() local 67 offset = 1; in ima_fix_xattr() 70 offset = 0; in ima_fix_xattr() 75 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr() 76 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
|
D | ima_policy.c | 1371 int offset = 0; in ima_policy_show() local 1397 offset = 1; in ima_policy_show() 1399 seq_printf(m, pt(Opt_mask), mt(mask_exec) + offset); in ima_policy_show() 1401 seq_printf(m, pt(Opt_mask), mt(mask_write) + offset); in ima_policy_show() 1403 seq_printf(m, pt(Opt_mask), mt(mask_read) + offset); in ima_policy_show() 1405 seq_printf(m, pt(Opt_mask), mt(mask_append) + offset); in ima_policy_show()
|
/security/tomoyo/ |
D | domain.c | 624 int offset = pos % PAGE_SIZE; in tomoyo_environ() local 641 pos += PAGE_SIZE - offset; in tomoyo_environ() 643 while (argv_count && offset < PAGE_SIZE) { in tomoyo_environ() 644 if (!env_page.data[offset++]) in tomoyo_environ() 648 offset = 0; in tomoyo_environ() 651 while (offset < PAGE_SIZE) { in tomoyo_environ() 652 const unsigned char c = env_page.data[offset++]; in tomoyo_environ() 684 offset = 0; in tomoyo_environ() 924 const unsigned int offset = pos % PAGE_SIZE; in tomoyo_dump_page() local 933 memcpy(dump->data + offset, kaddr + offset, in tomoyo_dump_page() [all …]
|
D | audit.c | 31 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()
|
D | condition.c | 114 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/evm/ |
D | evm_secfs.c | 132 int offset = 0; in evm_read_xattrs() local 153 sprintf(temp + offset, "%s\n", xattr->name); in evm_read_xattrs() 154 offset += strlen(xattr->name) + 1; in evm_read_xattrs()
|
/security/integrity/ |
D | iint.c | 188 int integrity_kernel_read(struct file *file, loff_t offset, in integrity_kernel_read() argument 200 ret = __vfs_read(file, buf, count, &offset); in integrity_kernel_read()
|
D | integrity.h | 141 int integrity_kernel_read(struct file *file, loff_t offset,
|
/security/selinux/ |
D | hooks.c | 4170 int offset, ihlen, ret = -EINVAL; in selinux_parse_skb_ipv4() local 4173 offset = skb_network_offset(skb); in selinux_parse_skb_ipv4() 4174 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in selinux_parse_skb_ipv4() 4196 offset += ihlen; in selinux_parse_skb_ipv4() 4197 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in selinux_parse_skb_ipv4() 4212 offset += ihlen; in selinux_parse_skb_ipv4() 4213 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in selinux_parse_skb_ipv4() 4228 offset += ihlen; in selinux_parse_skb_ipv4() 4229 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in selinux_parse_skb_ipv4() 4245 offset += ihlen; in selinux_parse_skb_ipv4() [all …]
|
D | selinuxfs.c | 458 unsigned long offset; in sel_mmap_policy_fault() local 464 offset = vmf->pgoff << PAGE_SHIFT; in sel_mmap_policy_fault() 465 if (offset >= roundup(plm->len, PAGE_SIZE)) in sel_mmap_policy_fault() 468 page = vmalloc_to_page(plm->data + offset); in sel_mmap_policy_fault()
|
/security/smack/ |
D | smack_lsm.c | 3793 int offset; in smk_skb_to_addr_ipv6() local 3804 offset = skb_network_offset(skb); in smk_skb_to_addr_ipv6() 3805 ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in smk_skb_to_addr_ipv6() 3811 offset += sizeof(_ipv6h); in smk_skb_to_addr_ipv6() 3812 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in smk_skb_to_addr_ipv6() 3813 if (offset < 0) in smk_skb_to_addr_ipv6() 3819 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in smk_skb_to_addr_ipv6() 3825 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in smk_skb_to_addr_ipv6() 3830 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in smk_skb_to_addr_ipv6()
|