]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'cb/path-owner-check-with-sudo-plus'
authorJunio C Hamano <gitster@pobox.com>
Sat, 18 Jun 2022 00:12:31 +0000 (17:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Jun 2022 00:12:31 +0000 (17:12 -0700)
commit694c0cc0fb531b17750ac6e81920054f193f8eb8
treefad0a4206959b893d567b876d64efa39ba032861
parentb4eda05d58ca3e4808d3d86ab5826c77995a06f7
parent6b11e3d52e919cce91011f4f9025e6f4b61375f2
Merge branch 'cb/path-owner-check-with-sudo-plus'

"sudo git foo" used to consider a repository owned by the original
user a safe one to access; it now also considers a repository owned
by root a safe one, too (after all, if an attacker can craft a
malicious repository owned by root, the box is 0wned already).

* cb/path-owner-check-with-sudo-plus:
  git-compat-util: allow root to access both SUDO_UID and root owned
Documentation/config/safe.txt
git-compat-util.h