diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-26 20:17:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-26 20:17:07 -0700 |
commit | 5311034ddda7aad48934520d3536b9d0e4502672 (patch) | |
tree | 1c4f522322883ccf8e253c95343abc74344bfab8 | |
parent | 533995ed85730a1f5f385b9ecb2d2b4b731d27b4 (diff) | |
parent | 53a7197aff20e341487fca8575275056fe1c63e5 (diff) | |
download | op-kernel-dev-5311034ddda7aad48934520d3536b9d0e4502672.zip op-kernel-dev-5311034ddda7aad48934520d3536b9d0e4502672.tar.gz |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
IMA: iint put in ima_counts_get and put
-rw-r--r-- | security/integrity/ima/ima_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 101c512..4732f5e 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -262,6 +262,8 @@ void ima_counts_put(struct path *path, int mask) else if (mask & (MAY_READ | MAY_EXEC)) iint->readcount--; mutex_unlock(&iint->mutex); + + kref_put(&iint->refcount, iint_free); } /* @@ -291,6 +293,8 @@ void ima_counts_get(struct file *file) if (file->f_mode & FMODE_WRITE) iint->writecount++; mutex_unlock(&iint->mutex); + + kref_put(&iint->refcount, iint_free); } EXPORT_SYMBOL_GPL(ima_counts_get); |