• Al Viro's avatar
    [PATCH] sanitize __user_walk_fd() et.al. · 2d8f3038
    Al Viro authored
    * 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    2d8f3038
compat.c 53.2 KB