anoadragon453 / qubes-file-trust

Service files and daemon for file-based trust levels on QubesOS
3 stars 3 forks source link

Cache untrusted phrase #8

Closed jpouellet closed 7 years ago

jpouellet commented 7 years ago

https://github.com/anoadragon453/qubes-mime-types/blob/0b8b5a85522499462e48e00dc4915246a73ec790/qubesfiletrust/qvm_file_trust.py#L197-L211

No need to re-read the phrase file on each dir check in the same invocation.

Can hoist this to one-time initialization someplace.

anoadragon453 commented 7 years ago

Good point! Fixed in f690e80.