aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-01-27 20:16:35 -0800
committerEric Biggers <ebiggers@google.com>2020-01-28 10:45:52 -0800
commit07d744068d437b09d7a07975e88e18440f5db2f3 (patch)
tree82171c13401976e80520f3ba98a02bc9c9d81ec4 /crypto
parent5c08edd521deadd36bec36662d30681b01253d62 (diff)
filesystem: don't overwrite existing protector links
When adding a protector to a policy, don't unconditionally overwrite the protector link, because it may already exist. Instead, if it already exists and points to the mount, just use it. If it already exists and points to the wrong place, return an error. Also add a bool to the return value of AddLinkedProtector() so that callers can check whether the link was newly created or not.
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions