• Linus Torvalds's avatar
    Merge tag 'landlock-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · cb44e4f0
    Linus Torvalds authored
    Pull Landlock updates from Mickaël Salaün:
    
     - improve the path_rename LSM hook implementations for RENAME_EXCHANGE;
    
     - fix a too-restrictive filesystem control for a rare corner case;
    
     - set the nested sandbox limitation to 16 layers;
    
     - add a new LANDLOCK_ACCESS_FS_REFER access right to properly handle
       file reparenting (i.e. full rename and link support);
    
     - add new tests and documentation;
    
     - format code with clang-format to make it easier to maintain and
       contribute.
    
    * tag 'landlock-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: (30 commits)
      landlock: Explain how to support Landlock
      landlock: Add design choices documentation for filesystem access rights
      landlock: Document good practices about filesystem policies
      landlock: Document LANDLOCK_ACCESS_FS_REFER and ABI versioning
      samples/landlock: Add support for file reparenting
      selftests/landlock: Add 11 new test suites dedicated to file reparenting
      landlock: Add support for file reparenting with LANDLOCK_ACCESS_FS_REFER
      LSM: Remove double path_rename hook calls for RENAME_EXCHANGE
      landlock: Move filesystem helpers and add a new one
      landlock: Fix same-layer rule unions
      landlock: Create find_rule() from unmask_layers()
      landlock: Reduce the maximum number of layers to 16
      landlock: Define access_mask_t to enforce a consistent access mask size
      selftests/landlock: Test landlock_create_ruleset(2) argument check ordering
      landlock: Change landlock_restrict_self(2) check ordering
      landlock: Change landlock_add_rule(2) argument check ordering
      selftests/landlock: Add tests for O_PATH
      selftests/landlock: Fully test file rename with "remove" access
      selftests/landlock: Extend access right tests to directories
      selftests/landlock: Add tests for unknown access rights
      ...
    cb44e4f0
security.c 66.4 KB