cryptonas/hook-scripts
2006-11-09 17:43:40 +00:00
..
apache2_dav added apache2_dav hook script 2006-11-09 17:43:40 +00:00
README added hook scripts for samba and apache2-dav 2006-11-09 11:43:26 +00:00
samba added hook scripts for samba and apache2-dav 2006-11-09 11:43:26 +00:00

Hook scripts for CryptoBox events

If you want to execute specific actions according to changes of the cryptobox,
then you can just add your own scripts to this directory.
For every supported event of the CryptoBox, all scripts are called with root user
permissions.

The common synopsis for all hook scripts is:
	SCRIPTNAME EVENT [[EVENT_INFOS]...]

Supported events:
	premount|postmount|preumount|postumount:
		called before and after (u)mounting of a volume
		arguments (in this order):
			- device: name of the underlying device
			- vol_name: name of the (u)mounted volume
			- vol_type: type of the volume (plain|luks)
			- mount_dir: mountpoint of the volume


Every hook script has to fulfill the following conditions:
	- be executable (for the cryptobox user and for root)
	- be writeable for root only
	- its parent directories must be writeable for root only