google / fscrypt

Go tool for managing Linux filesystem encryption
Apache License 2.0
876 stars 97 forks source link

Compare mount by value instead of reference #413

Closed NymanRobin closed 2 months ago

NymanRobin commented 2 months ago

This has to be since the mounts are reloaded each time a mount is added. In case of two mounts mounting at the same time there will be a race condition for applying policy.

I added the unit test in mountpoint for my sanity while developing and some kind of documentation of the issue.

This fixes issue #411

NymanRobin commented 2 months ago

Thanks for the comments, I fixed them now!

NymanRobin commented 2 months ago

Thanks for the comments @ebiggers, I fixed up the stuff. Hope it looks good now :)