commit | 80ebe8c35d7426f38fa2e951679ce2a765a6bcf2 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Wed Jun 21 12:00:09 2023 -0700 |
committer | David Anderson <dvander@google.com> | Wed Jul 05 12:10:42 2023 -0700 |
tree | 25cd03ae3ce01cea4527c95e6b0fc5e8a243e789 | |
parent | b6df0138e5eb6052e16d2cd63045332c68b14cf0 [diff] |
snapuserd: Restrict where reads/writes to dm_user_header happen. Only write to dm_user_header in the functions which explicitly need to marshal it. This avoids leakage of dm-user specifics into core logic. This also simplifies the existing control flow by allowing us to set an error anywhere, or nowhere, as any "return false" from ProcessIORequest will automatically set an error header. Bug: 288273605 Test: snapuserd_test Change-Id: I85f67208197d7ecc49e348ab3013827a38e84761