bdev: Add verification for file storage paths
authorMichael Hanselmann <hansmi@google.com>
Wed, 17 Oct 2012 14:10:07 +0000 (16:10 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 25 Oct 2012 12:18:43 +0000 (14:18 +0200)
commit23e3c9b73b830ce04c94a1202f7cc8e684e3cd82
tree7145af7728036e7122903b761387fd9fd59d98f3
parentaebd0e4e7ff5aa0e1c4d9cbac0e80b27119fbc24
bdev: Add verification for file storage paths

An earlier version of this patch series verified all paths in cmdlib in
the master daemon. With this change all that verification code is moved
to bdev to run inside the node daemon. The checks are much stricter
now--it is no longer possible to use forbidden paths (e.g. /bin) to
manipulate file storage devices (once these checks are being used).

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/bdev.py
test/ganeti.bdev_unittest.py