Blame view

include/linux/integrity.h 1.05 KB
f381c2722   Mimi Zohar   integrity: move i...
1
2
3
4
5
6
7
8
9
10
11
12
13
  /*
   * Copyright (C) 2009 IBM Corporation
   * Author: Mimi Zohar <zohar@us.ibm.com>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, version 2 of the License.
   */
  
  #ifndef _LINUX_INTEGRITY_H
  #define _LINUX_INTEGRITY_H
  
  #include <linux/fs.h>
66dbc325a   Mimi Zohar   evm: re-release
14
15
  enum integrity_status {
  	INTEGRITY_PASS = 0,
e09986334   Matthew Garrett   EVM: Add support ...
16
  	INTEGRITY_PASS_IMMUTABLE,
66dbc325a   Mimi Zohar   evm: re-release
17
18
  	INTEGRITY_FAIL,
  	INTEGRITY_NOLABEL,
566be59ab   Mimi Zohar   evm: permit mode ...
19
  	INTEGRITY_NOXATTRS,
66dbc325a   Mimi Zohar   evm: re-release
20
21
  	INTEGRITY_UNKNOWN,
  };
6be5cc524   Dmitry Kasatkin   evm: add support ...
22
  /* List of EVM protected security xattrs */
f381c2722   Mimi Zohar   integrity: move i...
23
  #ifdef CONFIG_INTEGRITY
bf2276d10   Dmitry Kasatkin   ima: allocating i...
24
  extern struct integrity_iint_cache *integrity_inode_get(struct inode *inode);
f381c2722   Mimi Zohar   integrity: move i...
25
  extern void integrity_inode_free(struct inode *inode);
c9cd2ce2b   Dmitry Kasatkin   integrity: provid...
26
  extern void __init integrity_load_keys(void);
f381c2722   Mimi Zohar   integrity: move i...
27
28
  
  #else
bf2276d10   Dmitry Kasatkin   ima: allocating i...
29
30
  static inline struct integrity_iint_cache *
  				integrity_inode_get(struct inode *inode)
f381c2722   Mimi Zohar   integrity: move i...
31
  {
bf2276d10   Dmitry Kasatkin   ima: allocating i...
32
  	return NULL;
f381c2722   Mimi Zohar   integrity: move i...
33
34
35
36
37
38
  }
  
  static inline void integrity_inode_free(struct inode *inode)
  {
  	return;
  }
c9cd2ce2b   Dmitry Kasatkin   integrity: provid...
39
40
41
42
  
  static inline void integrity_load_keys(void)
  {
  }
e05a4f4fc   Paul Bolle   Remove spurious _...
43
  #endif /* CONFIG_INTEGRITY */
c9cd2ce2b   Dmitry Kasatkin   integrity: provid...
44

f381c2722   Mimi Zohar   integrity: move i...
45
  #endif /* _LINUX_INTEGRITY_H */