integrity.h (9ddf6aa8cbc07764c7fe33cfdb8644ca5e828252) integrity.h (45e2472e67bf66f794d507b52e82af92e0614e49)
1/*
2 * Copyright (C) 2009-2010 IBM Corporation
3 *
4 * Authors:
5 * Mimi Zohar <zohar@us.ibm.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation, version 2 of the
10 * License.
11 *
12 */
13
14#include <linux/types.h>
15#include <linux/integrity.h>
16#include <crypto/sha.h>
17
1/*
2 * Copyright (C) 2009-2010 IBM Corporation
3 *
4 * Authors:
5 * Mimi Zohar <zohar@us.ibm.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation, version 2 of the
10 * License.
11 *
12 */
13
14#include <linux/types.h>
15#include <linux/integrity.h>
16#include <crypto/sha.h>
17
18/* iint action cache flags */
19#define IMA_MEASURE 0x0001
20#define IMA_MEASURED 0x0002
21#define IMA_APPRAISE 0x0004
22#define IMA_APPRAISED 0x0008
23/*#define IMA_COLLECT 0x0010 do not use this flag */
24#define IMA_COLLECTED 0x0020
25
18/* iint cache flags */
26/* iint cache flags */
19#define IMA_MEASURE 0x01
20#define IMA_MEASURED 0x02
21#define IMA_APPRAISE 0x04
22#define IMA_APPRAISED 0x08
23#define IMA_COLLECTED 0x10
24#define IMA_DIGSIG 0x20
27#define IMA_DIGSIG 0x0100
25
28
29#define IMA_DO_MASK (IMA_MEASURE | IMA_APPRAISE)
30#define IMA_DONE_MASK (IMA_MEASURED | IMA_APPRAISED | IMA_COLLECTED)
31
26enum evm_ima_xattr_type {
27 IMA_XATTR_DIGEST = 0x01,
28 EVM_XATTR_HMAC,
29 EVM_IMA_XATTR_DIGSIG,
30};
31
32struct evm_ima_xattr_data {
33 u8 type;

--- 43 unchanged lines hidden ---
32enum evm_ima_xattr_type {
33 IMA_XATTR_DIGEST = 0x01,
34 EVM_XATTR_HMAC,
35 EVM_IMA_XATTR_DIGSIG,
36};
37
38struct evm_ima_xattr_data {
39 u8 type;

--- 43 unchanged lines hidden ---