verity: add new verity.roothashfile option

Allow users to point mount to a file to read the roothash, in addition
to passing it inline.
Allows a volume managed by a systemd mount unit to be updated without
changing the mount unit content itself, for easier and more user friendly
servicing.
This commit is contained in:
Luca Boccassi 2019-12-10 11:18:09 +00:00
parent bba1a60198
commit 141bb954e7
6 changed files with 32 additions and 1 deletions

View file

@ -254,6 +254,7 @@ PyMODINIT_FUNC initpylibmount(void)
PyModule_AddIntConstant(m, "MNT_MS_HASH_DEVICE", MNT_MS_HASH_DEVICE);
PyModule_AddIntConstant(m, "MNT_MS_ROOT_HASH", MNT_MS_ROOT_HASH);
PyModule_AddIntConstant(m, "MNT_MS_HASH_OFFSET", MNT_MS_HASH_OFFSET);
PyModule_AddIntConstant(m, "MNT_MS_ROOT_HASH_FILE", MNT_MS_ROOT_HASH_FILE);
/*
* mount(2) MS_* masks (MNT_MAP_LINUX map)