]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ecryptfs: lower root result must be adirectory
authorDmitriy Monakhov <dmonakhov@sw.ru>
Mon, 5 Mar 2007 08:30:46 +0000 (00:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 5 Mar 2007 15:57:53 +0000 (07:57 -0800)
commit82b16528405131eadc18285da982d4806f6db34e
tree0c59a2cfa72c0833c364a94d16e6017f42154e9f
parenta5f5e43e2b1377392f9afe93aca29b9abf1d6a44
[PATCH] ecryptfs: lower root result must be adirectory

- Currently after path_lookup succeed we dot't have any guarantie what
  it is DIR. This must be explicitly demanded.
- path_lookup can't return negative dentry, So inode check is useless.

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/main.c