]> git.proxmox.com Git - pve-container.git/commit
fix block device access
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 7 Sep 2015 11:40:58 +0000 (13:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 7 Sep 2015 14:48:38 +0000 (16:48 +0200)
commit873d39476f6fd33a504bfbc6f0e62ca28204d43a
treef5ecf5b56ddd052d4eca45935187b76ff9942594
parentda6298481ea4dfe7d894f42fa105cda015ebe5ce
fix block device access

-) The condition was apparently to ignore /dev/ paths while
   that's actually what it was supposed to handle... (other
   paths aren't devices...).
-) Get rid of the blockdevices_list heuristics, it doesn't
   work reliably for all types of devices.
-) Check whether a device is a block device via S_ISBLK on
   the device file.
-) Don't try to follow symlinks as the name we provide in
   the mp config is the name we want in the container.
-) Blacklisted loop devices as they pose a security risk.
src/PVE/LXC.pm
src/lxc-pve-mount-hook