Lines Matching refs:result
43 int i, result = 0;
70 result = field->field_init(event_data,
72 if (result != 0)
83 return result;
109 int result;
112 result = ima_calc_field_array_hash(&entry->template_data[0],
114 if (result < 0) {
117 audit_cause, result, 0);
118 return result;
122 result = ima_add_template_entry(entry, violation, op, inode, filename);
123 return result;
144 int result;
149 result = ima_alloc_init_template(&event_data, &entry, NULL);
150 if (result < 0) {
151 result = -ENOMEM;
154 result = ima_store_template(entry, violation, inode,
156 if (result < 0)
160 op, cause, result, 0);
211 * On failure, 'measure' policy rules will result in a file data
250 int result = 0;
272 result = vfs_getattr_nosec(&file->f_path, &stat, STATX_CHANGE_COOKIE,
274 if (!result && (stat.result_mask & STATX_CHANGE_COOKIE))
285 result = -ENODATA;
288 result = ima_calc_buffer_hash(buf, size, &hash.hdr);
290 result = ima_calc_file_hash(file, &hash.hdr);
293 if (result && result != -EBADF && result != -EINVAL)
299 result = -ENOMEM;
312 if (!result)
315 if (result) {
321 result, 0);
323 return result;
349 int result = -ENOMEM;
369 result = ima_alloc_init_template(&event_data, &entry, template_desc);
370 if (result < 0) {
372 op, audit_cause, result, 0);
376 result = ima_store_template(entry, violation, inode, filename, pcr);
377 if ((!result || result == -EEXIST) && !(file->f_flags & O_DIRECT)) {
381 if (result < 0)
429 * Returning a pointer to dname, could result in using the pointer