Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286539
b: refs/heads/master
c: 3db59dd
h: refs/heads/master
i:
  286537: e18b79a
  286535: d01ade2
v: v3
  • Loading branch information
Mimi Zohar authored and James Morris committed Jan 19, 2012
1 parent daab7c5 commit ccfbb44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 4bf1924c008dffdc154f82507b4052e49263a6f4
refs/heads/master: 3db59dd93309710c40aaf1571c607cb0feef3ecb
3 changes: 2 additions & 1 deletion trunk/security/integrity/ima/ima_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static bool ima_match_rules(struct ima_measure_rule_entry *rule,
struct inode *inode, enum ima_hooks func, int mask)
{
struct task_struct *tsk = current;
const struct cred *cred = current_cred();
int i;

if ((rule->flags & IMA_FUNC) && rule->func != func)
Expand All @@ -108,7 +109,7 @@ static bool ima_match_rules(struct ima_measure_rule_entry *rule,
if ((rule->flags & IMA_FSMAGIC)
&& rule->fsmagic != inode->i_sb->s_magic)
return false;
if ((rule->flags & IMA_UID) && rule->uid != tsk->cred->uid)
if ((rule->flags & IMA_UID) && rule->uid != cred->uid)
return false;
for (i = 0; i < MAX_LSM_RULES; i++) {
int rc = 0;
Expand Down

0 comments on commit ccfbb44

Please sign in to comment.