Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329108
b: refs/heads/master
c: 9957a50
h: refs/heads/master
v: v3
  • Loading branch information
Mimi Zohar committed Sep 7, 2012
1 parent 1f0e9e7 commit 2831f1a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a10bf26b2f53242836e9362c6c9c857b627b82a9
refs/heads/master: 9957a5043e7b0b7361cdf48eea22b2900293e63a
2 changes: 2 additions & 0 deletions trunk/fs/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/fcntl.h>
#include <linux/security.h>
#include <linux/evm.h>
#include <linux/ima.h>

/**
* inode_change_ok - check if attribute changes to an inode are allowed
Expand Down Expand Up @@ -247,6 +248,7 @@ int notify_change(struct dentry * dentry, struct iattr * attr)

if (!error) {
fsnotify_change(dentry, ia_valid);
ima_inode_post_setattr(dentry);
evm_inode_post_setattr(dentry, ia_valid);
}

Expand Down
10 changes: 10 additions & 0 deletions trunk/include/linux/ima.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,15 @@ static inline int ima_file_mmap(struct file *file, unsigned long prot)
{
return 0;
}

#endif /* CONFIG_IMA_H */

#ifdef CONFIG_IMA_APPRAISE
extern void ima_inode_post_setattr(struct dentry *dentry);
#else
static inline void ima_inode_post_setattr(struct dentry *dentry)
{
return;
}
#endif /* CONFIG_IMA_APPRAISE_H */
#endif /* _LINUX_IMA_H */

0 comments on commit 2831f1a

Please sign in to comment.