Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329115
b: refs/heads/master
c: d9d300c
h: refs/heads/master
i:
  329113: 7b921cc
  329111: fa507b0
v: v3
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Sep 12, 2012
1 parent 9f51196 commit f97c469
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e23eb920b0f3978687c497de2ac3eb9e281dab32
refs/heads/master: d9d300cdb6f233c4c591348919c758062198a4f4
2 changes: 1 addition & 1 deletion trunk/security/integrity/ima/ima.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static inline unsigned long ima_hash_key(u8 *digest)
}

/* LIM API function definitions */
int ima_must_appraise_or_measure(struct inode *inode, int mask, int function);
int ima_get_action(struct inode *inode, int mask, int function);
int ima_must_measure(struct inode *inode, int mask, int function);
int ima_collect_measurement(struct integrity_iint_cache *iint,
struct file *file);
Expand Down
4 changes: 2 additions & 2 deletions trunk/security/integrity/ima/ima_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void ima_add_violation(struct inode *inode, const unsigned char *filename,
}

/**
* ima_must_appraise_or_measure - appraise & measure decision based on policy.
* ima_get_action - appraise & measure decision based on policy.
* @inode: pointer to inode to measure
* @mask: contains the permission mask (MAY_READ, MAY_WRITE, MAY_EXECUTE)
* @function: calling function (FILE_CHECK, BPRM_CHECK, FILE_MMAP)
Expand All @@ -112,7 +112,7 @@ void ima_add_violation(struct inode *inode, const unsigned char *filename,
* Returns IMA_MEASURE, IMA_APPRAISE mask.
*
*/
int ima_must_appraise_or_measure(struct inode *inode, int mask, int function)
int ima_get_action(struct inode *inode, int mask, int function)
{
int flags = IMA_MEASURE | IMA_APPRAISE;

Expand Down
2 changes: 1 addition & 1 deletion trunk/security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int process_measurement(struct file *file, const unsigned char *filename,

/* Determine if in appraise/measurement policy,
* returns IMA_MEASURE, IMA_APPRAISE bitmask. */
action = ima_must_appraise_or_measure(inode, mask, function);
action = ima_get_action(inode, mask, function);
if (!action)
return 0;

Expand Down

0 comments on commit f97c469

Please sign in to comment.