btrfs-progs: optionally enforce chroot for btrfs receive
authorLauri Võsandi <lauri.vosandi@gmail.com>
Sun, 19 Apr 2015 11:46:28 +0000 (14:46 +0300)
committerDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 13:42:05 +0000 (15:42 +0200)
commit9a86668071e77b2da0173b8921153de4d7ba99d8
treeae76c78a8f776f1815a4824817a52ce64d2b8bcb
parent7732e6ef62159cc942897df0a358b784b62658c1
btrfs-progs: optionally enforce chroot for btrfs receive

This patch forces btrfs receive to issue chroot before
parsing the btrfs stream using command-line flag -C
to confine the process and minimize damage that could
be done via malicious btrfs stream.

Signed-off-by: Lauri Võsandi <lauri.vosandi@gmail.com>
[added long option variant, added docs]
Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/btrfs-receive.asciidoc
cmds-receive.c