Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ima_appraise.c File Reference
#include <linux/module.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/xattr.h>
#include <linux/magic.h>
#include <linux/ima.h>
#include <linux/evm.h>
#include "ima.h"

Go to the source code of this file.

Functions

 __setup ("ima_appraise=", default_appraise_setup)
 
int ima_must_appraise (struct inode *inode, int mask, enum ima_hooks func)
 
int ima_appraise_measurement (struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename)
 
void ima_update_xattr (struct integrity_iint_cache *iint, struct file *file)
 
void ima_inode_post_setattr (struct dentry *dentry)
 
int ima_inode_setxattr (struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len)
 
int ima_inode_removexattr (struct dentry *dentry, const char *xattr_name)
 

Function Documentation

__setup ( )
int ima_appraise_measurement ( struct integrity_iint_cache iint,
struct file file,
const unsigned char filename 
)

Definition at line 61 of file ima_appraise.c.

void ima_inode_post_setattr ( struct dentry dentry)

ima_inode_post_setattr - reflect file metadata changes : pointer to the affected dentry

Changes to a dentry's metadata might result in needing to appraise.

This function is called from notify_change(), which expects the caller to lock the inode's i_mutex.

Definition at line 185 of file ima_appraise.c.

int ima_inode_removexattr ( struct dentry dentry,
const char xattr_name 
)

Definition at line 253 of file ima_appraise.c.

int ima_inode_setxattr ( struct dentry dentry,
const char xattr_name,
const void xattr_value,
size_t  xattr_value_len 
)

Definition at line 239 of file ima_appraise.c.

int ima_must_appraise ( struct inode inode,
int  mask,
enum ima_hooks  func 
)

Definition at line 37 of file ima_appraise.c.

void ima_update_xattr ( struct integrity_iint_cache iint,
struct file file 
)

Definition at line 160 of file ima_appraise.c.