1. 19 2月, 2016 1 次提交
    • M
      vfs: define a generic function to read a file from the kernel · b44a7dfc
      Mimi Zohar 提交于
      For a while it was looked down upon to directly read files from Linux.
      These days there exists a few mechanisms in the kernel that do just
      this though to load a file into a local buffer.  There are minor but
      important checks differences on each.  This patch set is the first
      attempt at resolving some of these differences.
      
      This patch introduces a common function for reading files from the kernel
      with the corresponding security post-read hook and function.
      
      Changelog v4+:
      - export security_kernel_post_read_file() - Fengguang Wu
      v3:
      - additional bounds checking - Luis
      v2:
      - To simplify patch review, re-ordered patches
      Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
      Reviewed-by: NLuis R. Rodriguez <mcgrof@suse.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      b44a7dfc
  2. 25 12月, 2015 3 次提交
  3. 28 7月, 2015 1 次提交
  4. 12 5月, 2015 4 次提交