]> err.no Git - linux-2.6/commit
[PATCH] sanitize __user_walk_fd() et.al.
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Jul 2008 13:59:21 +0000 (09:59 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:34 +0000 (20:53 -0400)
commit2d8f30380ab8c706f4e0a8f1aaa22b5886e9ac8a
treeb798097fd831eab39f35c8c2e5a8ccfd7a850ef5
parent256984a83880ff7ac78055cb87baea48137f0b77
[PATCH] sanitize __user_walk_fd() et.al.

* do not pass nameidata; struct path is all the callers want.
* switch to new helpers:
user_path_at(dfd, pathname, flags, &path)
user_path(pathname, &path)
user_lpath(pathname, &path)
user_path_dir(pathname, &path)  (fail if not a directory)
  The last 3 are trivial macro wrappers for the first one.
* remove nameidata in callers.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
13 files changed:
arch/alpha/kernel/osf_sys.c
arch/parisc/hpux/sys_hpux.c
fs/coda/pioctl.c
fs/compat.c
fs/inotify_user.c
fs/namei.c
fs/namespace.c
fs/open.c
fs/stat.c
fs/utimes.c
fs/xattr.c
fs/xfs/linux-2.6/xfs_ioctl.c
include/linux/namei.h