Repository navigation
Changes between 2.3.0 and 3.0.0
-
Added: test cases forcp,mvand thecleanhook. -
Added:appjail.exec.cleanlabel to the jail- Although the
cleanexecutable is run viax11appjail removeorx11appjail destroy-jail, the problem is that AppJail (notx11appjail) is responsible for destroying ephemeral jails, which means that thecleanhook is not executed when the jail is destroyed.
To fix this,APPSCRIPTadds theappjail.exec.cleanlabel when creating the jail so that it points to the path of thecleanhook executable, ensuring that AppJail runs it whenappjail jail destroyis executed.
- Although the
-
Added:cpandmvcommands toattrandsys-attr. -
BREAKING-CHANGE: Restrict greedy regex used to validate the profile name- Currently, the
cleanhook is not executed by thex11appjail removecommand, but only byx11appjail destroy-jail, which is undesirable because, even if the jail is not destroyed, everything that has been started (such as a service) or installed by an AppJail will remain there.
There are two ways to fix this. The first is to add a label to the jail with the UID, but this means that existing AppJails will not be affected. The second method (and the one that has been implemented) is to extract the UID from the jail's name, but to avoid ambiguity, the regular expression has been restricted by removing the
_character. - Currently, the
-
Added: hooks forcmd,xcmd,loginandtransfercommands:- These are hooks similar to clean, but, unlike it, they replace the entire execution of the run-cmd, run-xcmd, login, and transfer commands.
Full Changelog: v2.3.0...v3.0.0