git-lfs/debian
brian m. carlson 74d5f2397f
subprocess: avoid using relative program names
When Go runs a program with os.exec, it uses the LookPath function to
look up the path name if the path does not contain a path separator.  On
Unix, this provides the standard Unix semantics by looking in PATH.
However, on Windows, it also looks in the current directory as well to
emulate the behavior of CMD.

Unfortunately, this is a well-known security flaw on Windows and similar
behavior there is the source for several whole classes of security
vulnerabilities.  This leads to an untrusted repository being able to
create a git.bat file that gets executed in preference to our trusted
path for the git binary.

Since we don't want to rely on Go fixing this behavior, let's import
some code from Go to provide the Unix semantics for LookPath, which are
secure if the user hasn't put the current directory in PATH.  That
should provide secure behavior in this case.  Fortunately, our code goes
through one particular place to run all commands, so this is a
relatively simple fix.

Update the various copyright and license files to reflect our imported
code.
2020-11-02 20:57:56 +00:00
..
source Add debian directory and gitignore temporary build files 2015-05-15 15:27:21 +00:00
changelog release: v2.12.0 2020-09-01 13:21:22 +00:00
compat Add debian directory and gitignore temporary build files 2015-05-15 15:27:21 +00:00
control debian: bump version of golang-go 2019-12-19 20:00:56 +00:00
copyright subprocess: avoid using relative program names 2020-11-02 20:57:56 +00:00
git-lfs.lintian-overrides Some cleanup to make debian package pass lintian checks 2015-07-08 02:24:38 +00:00
git-lfs.manpages Fixed #719 missing /usr/share/man/man5/git-lfs-config.5.gz . 2016-04-15 15:59:28 +10:00
postinst Added --system option to install command. This option is invoked from post-install scripts in rpm/deb packages. 2016-06-30 12:05:30 +10:00
prerm debian/prerm: add --system flag 2018-09-20 13:21:34 +02:00
rules debian/rules: update for Go 1.12 2019-07-15 16:40:31 +00:00