Mimi Zohar 1df9f0a731 Integrity: IMA file free imbalance
The number of calls to ima_path_check()/ima_file_free()
should be balanced.  An extra call to fput(), indicates
the file could have been accessed without first being
measured.

Although f_count is incremented/decremented in places other
than fget/fput, like fget_light/fput_light and get_file, the
current task must already hold a file refcnt.  The call to
__fput() is delayed until the refcnt becomes 0, resulting
in ima_file_free() flagging any changes.

- add hook to increment opencount for IPC shared memory(SYSV),
  shmat files, and /dev/zero
- moved NULL iint test in opencount_get()

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
2009-02-06 09:05:33 +11:00
..
2008-12-29 11:27:46 +02:00
2008-10-20 08:50:26 -07:00
2008-12-29 11:27:46 +02:00
2008-10-23 08:55:02 -07:00
2008-11-30 10:03:35 -08:00
2008-11-14 11:29:12 +11:00
2007-10-20 01:27:18 +02:00
2008-12-25 11:40:09 +11:00
2008-04-28 08:58:18 -07:00
2008-12-20 09:15:47 +01:00
2009-02-06 09:05:30 +11:00
2008-07-28 16:30:21 -07:00
2008-07-28 16:30:21 -07:00
2007-05-21 09:18:19 -07:00
2008-10-30 11:38:47 -07:00
2008-11-14 11:29:12 +11:00
2008-02-05 09:44:19 -08:00
2008-06-12 18:05:41 -07:00
2007-10-20 01:27:18 +02:00
2008-10-20 08:52:40 -07:00
2009-02-06 09:05:33 +11:00
2008-11-30 10:03:35 -08:00
2008-12-16 18:34:51 +01:00
2008-12-10 08:01:54 -08:00