Skip to content

Commit

Permalink
Avoid races in copy_tree()
Browse files Browse the repository at this point in the history
Use *at() functions to pin the directory operating in to avoid being
redirected by unprivileged users replacing parts of paths by symlinks to
privileged files.

Introduce a path_info struct with the full path and dirfd and name
information for *at() functions, since the full path is needed for link
resolution, SELinux label lookup and ACL attributes.
  • Loading branch information
cgzones authored and hallyn committed Aug 17, 2022
1 parent 6cbec2d commit faeab50
Showing 1 changed file with 218 additions and 112 deletions.
Loading

0 comments on commit faeab50

Please sign in to comment.