Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157347
b: refs/heads/master
c: 6c1488f
h: refs/heads/master
i:
  157345: 71e29e1
  157343: 39d973e
v: v3
  • Loading branch information
Mimi Zohar authored and James Morris committed Sep 3, 2009
1 parent 4fdbd1f commit bb194f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: ee18d64c1f632043a02e6f5ba5e045bb26a5465f
refs/heads/master: 6c1488fd581a447ec87c4b59f0d33f95f0aa441b
6 changes: 4 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,9 +1533,11 @@ int may_open(struct path *path, int acc_mode, int flag)
if (error)
return error;

error = ima_path_check(path,
acc_mode & (MAY_READ | MAY_WRITE | MAY_EXEC),
error = ima_path_check(path, acc_mode ?
acc_mode & (MAY_READ | MAY_WRITE | MAY_EXEC) :
ACC_MODE(flag) & (MAY_READ | MAY_WRITE),
IMA_COUNT_UPDATE);

if (error)
return error;
/*
Expand Down

0 comments on commit bb194f8

Please sign in to comment.