All of lore.kernel.org
 help / color / mirror / Atom feed
* IMA & truncate
@ 2014-05-06 13:32 Dmitry Kasatkin
  2014-05-06 13:47 ` Javier González
  2014-05-06 16:59 ` Al Viro
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitry Kasatkin @ 2014-05-06 13:32 UTC (permalink / raw)
  To: linux-security-module, Mimi Zohar; +Cc: viro, Linux Kernel Mailing List

Hi,

I have discovered one IMA related issue.

IMA file hash is re-calculate if needed on file close.

It works with ftruncate(fd, length) syscall, because it operates on
"opened" file.
Recalculation is happening on file close.

truncate(path, length) syscall works with path and no file open/close
takes place.
Recalculation does not happen.
IMA denies file access later.

It looks like vfs_truncate() should possibly call IMA to recalculate the
hash.

- Dmitry


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-07  5:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06 13:32 IMA & truncate Dmitry Kasatkin
2014-05-06 13:47 ` Javier González
2014-05-06 16:59 ` Al Viro
2014-05-06 18:39   ` Mimi Zohar
2014-05-06 19:11     ` Al Viro
2014-05-07  5:46       ` Dmitry Kasatkin
2014-05-07  5:45   ` Dmitry Kasatkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.