diff options
author | Dmitry Kasatkin <dmitry.kasatkin@intel.com> | 2012-09-27 18:26:53 +0300 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2012-10-05 22:32:16 +1000 |
commit | d26e1936227b538a1691b978566ef269aef10853 (patch) | |
tree | c1b803d6177f6c39932a159c7bdb2c557497e16f /security/integrity/ima/ima_appraise.c | |
parent | ecefbd94b834fa32559d854646d777c56749ef1c (diff) | |
download | linux-d26e1936227b538a1691b978566ef269aef10853.tar.gz linux-d26e1936227b538a1691b978566ef269aef10853.tar.bz2 linux-d26e1936227b538a1691b978566ef269aef10853.zip |
ima: fix bug in argument order
mask argument goes first, then func, like ima_must_measure
and ima_get_action. ima_inode_post_setattr() assumes that.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'security/integrity/ima/ima_appraise.c')
-rw-r--r-- | security/integrity/ima/ima_appraise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_appraise.c b/security/integrity/ima/ima_appraise.c index 0aa43bde441c..bdc8ba1d1d27 100644 --- a/security/integrity/ima/ima_appraise.c +++ b/security/integrity/ima/ima_appraise.c @@ -34,7 +34,7 @@ __setup("ima_appraise=", default_appraise_setup); * * Return 1 to appraise */ -int ima_must_appraise(struct inode *inode, enum ima_hooks func, int mask) +int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func) { if (!ima_appraise) return 0; |