[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>
Showing
- arch/alpha/kernel/osf_sys.c 5 additions, 5 deletionsarch/alpha/kernel/osf_sys.c
- arch/parisc/hpux/sys_hpux.c 5 additions, 5 deletionsarch/parisc/hpux/sys_hpux.c
- fs/coda/pioctl.c 7 additions, 7 deletionsfs/coda/pioctl.c
- fs/compat.c 10 additions, 10 deletionsfs/compat.c
- fs/inotify_user.c 11 additions, 11 deletionsfs/inotify_user.c
- fs/namei.c 18 additions, 18 deletionsfs/namei.c
- fs/namespace.c 36 additions, 38 deletionsfs/namespace.c
- fs/open.c 62 additions, 62 deletionsfs/open.c
- fs/stat.c 16 additions, 16 deletionsfs/stat.c
- fs/utimes.c 4 additions, 4 deletionsfs/utimes.c
- fs/xattr.c 48 additions, 48 deletionsfs/xattr.c
- fs/xfs/linux-2.6/xfs_ioctl.c 6 additions, 8 deletionsfs/xfs/linux-2.6/xfs_ioctl.c
- include/linux/namei.h 7 additions, 6 deletionsinclude/linux/namei.h
Loading
Please register or sign in to comment