From: Eric Paris Date: Fri, 31 Jul 2009 16:53:58 +0000 (-0400) Subject: Capabilities: move cap_file_mmap to commoncap.c X-Git-Tag: v2.6.31-rc7~32^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0d90103c7e0eb6e638e5b649e9f6d8d9c1b4b3;p=pandora-kernel.git Capabilities: move cap_file_mmap to commoncap.c Currently we duplicate the mmap_min_addr test in cap_file_mmap and in security_file_mmap if !CONFIG_SECURITY. This patch moves cap_file_mmap into commoncap.c and then calls that function directly from security_file_mmap ifndef CONFIG_SECURITY like all of the other capability checks are done. Signed-off-by: Eric Paris Acked-by: Serge Hallyn Signed-off-by: James Morris --- Reading git-diff-tree failed