Home
last modified time | relevance | path

Searched refs:i_size (Results 1 – 3 of 3) sorted by relevance

/security/integrity/ima/
Dima_crypto.c333 loff_t i_size, offset; in ima_calc_file_hash_atfm() local
356 i_size = i_size_read(file_inode(file)); in ima_calc_file_hash_atfm()
358 if (i_size == 0) in ima_calc_file_hash_atfm()
365 rbuf[0] = ima_alloc_pages(i_size, &rbuf_size[0], 1); in ima_calc_file_hash_atfm()
372 if (i_size > rbuf_size[0]) { in ima_calc_file_hash_atfm()
378 rbuf[1] = ima_alloc_pages(i_size - rbuf_size[0], in ima_calc_file_hash_atfm()
382 for (offset = 0; offset < i_size; offset += rbuf_len) { 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()
460 loff_t i_size, offset = 0; in ima_calc_file_hash_tfm() local
473 i_size = i_size_read(file_inode(file)); in ima_calc_file_hash_tfm()
[all …]
Dima_appraise.c406 (inode->i_size == 0))) in ima_appraise_measurement()
477 if (inode->i_size == 0 && iint->flags & IMA_NEW_FILE && in ima_appraise_measurement()
/security/apparmor/
Dapparmorfs.c1485 d_inode(dent)->i_size = rawdata->size; in __aa_fs_create_rawdata()