aboutsummaryrefslogtreecommitdiff
path: root/cryptech_backup
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-08-16 18:52:47 -0400
committerRob Austein <sra@hactrn.net>2016-08-16 18:52:47 -0400
commit0166b1b370862ab34335af3d5710304dc3546499 (patch)
treed417e792573c6cc120a81119564e6a4188762b77 /cryptech_backup
parent3822886e6e945d45b3c5b0a3d6fa4758dad07487 (diff)
Lock RPC device after opening it.
Current design of the RPC protocol assumes that there is exactly one client speaking directly to the HSM via the RPC channel, whether that single client really is single or is a multiplexing daemon. PKCS #11 mutexes won't help here, so using flock(2) to grab an exclusive "advisory" lock on the RPC file descriptor is the simplest solution.
Diffstat (limited to 'cryptech_backup')
0 files changed, 0 insertions, 0 deletions