0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-30 20:34:22 +01:00
gitea/modules
singuliere a036507204
gitconfig: set safe.directory = * (#19870)
Allow git push to work when networked file systems with mixed
ownership are used with Gitea docker images >= 1.16.6 or Gitea
binaries running alongside git versions published after 04/2022.

There are circumstances independent of Gitea (networked file systems
with various permission systems) by which the git repositories managed
by Gitea may have mixed owners. It is not a behavior that Gitea have
control over nor is it a problem as long as the permissions for Gitea to
operate are correct. Gitea instances have been operating under these
conditions for a number of years.

It is detected as a potential security risk ( see
GHSA-vw2c-22j4-2fh2
) by the most recent git versions. However, Gitea always runs git
commands with a current directory matching the repository on
which it operates. That makes Gitea immune from this security problem
and it is safe to ignore the mixed owner permission check.

This gitconfig modification is done on a file dedicated to the user
exclusively used by Gitea.

Fixes: #19455

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2022-06-17 06:49:38 +01:00
..
activitypub
analyze
appstate
auth
avatar
base Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
cache
charset
container
context Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
convert Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
csv Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
doctor Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
emoji
eventsource Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
generate
git gitconfig: set safe.directory = * (#19870) 2022-06-17 06:49:38 +01:00
gitgraph Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
graceful Fix signal loop in graceful manager (#19943) 2022-06-12 21:50:18 +08:00
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
json
lfs Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
log
markup Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
metrics
migration
nosql
notification Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
secret
session
setting Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
ssh
storage
structs
svg
sync
templates Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
test
timeutil Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
translation
typesniffer
updatechecker
upload
uri
user
util Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
validation
web