
 confinedrv v1.7.11
 (c) copyright by Elmar Stellnberger, the original author: 2009, Jan 2010, Nov&Dez 2014, Aug 2016, Sep 2019, Jan 2020, Mar 2020

  further information: www.elstel.org/com; look here for an actual contact address
  current email: estellnb@elstel.org; additional email estellnb@gmail.com

 v 1.7.11: allow device names which contain numbers like /dev/nvm0e1

 v 1.7.10: correctly handle --mbr ro/rw and mbr=
  * bugfix: partition images were not blended in correctly when they had lower access rights than the following partition

 v 1.7.9: do also backup the trailing space after the last partition by default: GPT partition tables

 v 1.7.8: support of whole partition table images (Sep 2019)
  * blanking of mbr (and only of first 440B to boot), testing mbr for being blanked and reinstalling an mbr from file

 v 1.7.7: allow to fade in a file for the mbr: sdy=sdb5,6 mbr=./sdb.mbr
  * use lockfile-progs in order to lock the $shm/confinedrv-loops file (lockfile-create) or use the old lockfile-executable as fallback which is still distributed with some distros
  * use /tmp if /dev/shm should not be accessible/mounted (and allow the user to mount /dev/shm later)
  * some smaller fixes like f.i. touching the $shm/confinedrv-loops for the first time in order to avoid an unnecessary error message

 v 1.7.6: use of external partition images (06.12.2014)
  * allows sth. like confinedrv sdy=sdb5,6 sdy5=/media/partitionimages/sdb5.img
  * /dev/shm/confinedrv-loops now also contains a disk image offset (incompatible with versions before).
  * correction of some minor issues: correct /dev/shm-cfdrv-lps. if loopdev deallocation should fail, do not accidentially drop loops on reallocation of the same device

 v 1.7.3: reuse of loop devices (01.12.2014)
  * moved parsing and device setup out of main loop into own procedures
  * new file format for /dev/shm/confinedrv-loops: "sdy /dev/loop0 /dev/sdb ro" (2 entries added); old program versions will not work on new format!
  * multiple devices can again be set up in a single command line

 v 1.7.2: gpt support (30.11.2014)
  * use of parted instead of fdisk
  * small changes: prettier printing, loopusage handled before first call to confinedrv, error swallowed by bash 4.2.37 discovered: org=${groups[0]%%[0-9,]*}: colon was forgotten

 v 1.7.1: small fixups (16.11.2014)
  * a problem in theory: eliminated race condition dropping loop devices, cleanup by --freeloop after kill -9
  * writable loop device only allocated if needed (previously: if any even non writable partition was specified)
  * acc2str -> access table printing: make a difference between zero and error
  * skip function is now more thoroughly documented

 v 1.7: fixing some boot issues and providing enhanced functionality
  * Certain boot problems which have arised under respective circumstances with v1.2.1 due to err-ing out gap spaces needed by grub or 
    other loaders rather than zeroing them out or making them available as read-only should now be resolved.
  * choose for any of three modes for every partition: read, write, error or zero (sdx=sda:r1:e2,3:w5,6,7:z8); default is now to zero
    out any parition which has not been mentioned rather than letting any access err there.
  * The --gap and --mbr options provide means for specifying the access rights for gaps between primary partitions or all the space
    before the first partition including the partition table and the MBR respectively.
  * The [--noannot] --info sdx now provides a better readable map of the partition table annotated with symbolic references for the
    start and end of partitions by default. --loopusage shows all loop devices in use by confinedrv.

 v 1.2.1: small fix (17.11.2013)
  * correctly allocate/deallocate loop drives if more than one virtual drive is specified on the command line

 v 1.2: new algorithm (17.11.2013)
  * completely reworked and better algorithm

 v 1.1: added license (30.10.2013)
  * better option parsing; some minor fixes
  * reads page size by getconf

 v.1.0: originally published version (Jan 2010)
  * original authors: Elmar Stellnberger


