Re: [PATCH] btrfs-progs: enforce chroot for btrfs receive

2015-04-17 Thread David Sterba
On Tue, Apr 14, 2015 at 09:19:12AM -0400, Austin S Hemmelgarn wrote: On 2015-04-14 08:28, David Sterba wrote: On Tue, Apr 14, 2015 at 01:44:32PM +0300, Lauri Võsandi wrote: This patch forces btrfs receive to issue chroot before parsing the btrfs stream to confine the process and minimize

Re: [PATCH] btrfs-progs: enforce chroot for btrfs receive

2015-04-14 Thread David Sterba
On Tue, Apr 14, 2015 at 01:44:32PM +0300, Lauri Võsandi wrote: This patch forces btrfs receive to issue chroot before parsing the btrfs stream to confine the process and minimize damage that could be done via malicious btrfs stream. Thanks. As we've discussed, there are possibly some things

[PATCH] btrfs-progs: enforce chroot for btrfs receive

2015-04-14 Thread Lauri Võsandi
This patch forces btrfs receive to issue chroot before parsing the btrfs stream to confine the process and minimize damage that could be done via malicious btrfs stream. Signed-off-by: Lauri Võsandi lauri.vosa...@gmail.com --- cmds-receive.c | 18 ++ 1 file changed, 10

Re: [PATCH] btrfs-progs: enforce chroot for btrfs receive

2015-04-14 Thread Austin S Hemmelgarn
On 2015-04-14 08:28, David Sterba wrote: On Tue, Apr 14, 2015 at 01:44:32PM +0300, Lauri Võsandi wrote: This patch forces btrfs receive to issue chroot before parsing the btrfs stream to confine the process and minimize damage that could be done via malicious btrfs stream. Thanks. As we've