Re: [PATCH] install-sh: avoid (low risk) race in /tmp

2018-03-11 Thread Mathieu Lirzin
Hello, Sorry for the long delay. Pavel Raiskup writes: > Ensure that nobody can cross privilege boundaries by pre-creating > symlink on '$tmpdir' path. > > Just testing 'mkdir -p' by creating '/tmp/ins$RANDOM-$$/d' is not > safe because '/tmp' directory is usually world-writeable and > '/tmp/in

Re: [PATCH] install-sh: avoid (low risk) race in /tmp

2018-02-27 Thread Mathieu Lirzin
Hello thomas, Thomas Deutschmann writes: > Pavel Raiskup submitted a patch to avoid a (low risk) race > in /tmp in April 2015 [1] which still isn't merged. > > Was there a reason or was it just forgotten? Maybe we can > add it now? Yes it has just been forgotten, if the patch is safe then yes w

Re: [PATCH] install-sh: avoid (low risk) race in /tmp

2018-02-27 Thread Thomas Deutschmann
Hi, Pavel Raiskup submitted a patch to avoid a (low risk) race in /tmp in April 2015 [1] which still isn't merged. Was there a reason or was it just forgotten? Maybe we can add it now? It is currently present in Red Hat, Debian and Gentoo (haven't checked more distributions). See also: ==

[PATCH] install-sh: avoid (low risk) race in /tmp

2015-04-30 Thread Pavel Raiskup
Ensure that nobody can cross privilege boundaries by pre-creating symlink on '$tmpdir' path. Just testing 'mkdir -p' by creating '/tmp/ins$RANDOM-$$/d' is not safe because '/tmp' directory is usually world-writeable and '/tmp/ins$RANDOM-$$' content could be pretty easily guessed by attacker (at le