Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.4 KB

bpf_ima_inode_hash.md

File metadata and controls

43 lines (28 loc) · 1.4 KB
title description
Helper Function 'bpf_ima_inode_hash'
This page documents the 'bpf_ima_inode_hash' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_ima_inode_hash

:octicons-tag-24: v5.11

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Returns the stored IMA hash of the inode (if it's available). If the hash is larger than size, then only size bytes will be copied to dst

Returns

The hash_algo is returned on success, -EOPNOTSUPP if IMA is disabled or -EINVAL if invalid arguments are passed.

#!c static long (* const bpf_ima_inode_hash)(struct inode *inode, void *dst, __u32 size) = (void *) 161;

Usage

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome