If an AppArmor malicious test is run as a systemd system job (using
`run-test-in-systemd --system`), $HOME will explicitly not be set, which
results in the program trying to read (null)/.bash_history, rather than
the expected /home/user/.bash_history.
Fix that by hard-coding it to use /home/user/.bash_history if $HOME is
not set. If the username changes in future, the tests should start
failing, which will allow us to update it again.
Bug-Apertis: https://bugs.apertis.org/show_bug.cgi?id=681Reviewed-by: Simon McVittie <email@example.com>
Signed-off-by: Philip Withnall <firstname.lastname@example.org>
Differential Revision: https://phabricator.apertis.org/D2283