aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-02-23 12:35:04 -0800
committerEric Biggers <ebiggers@google.com>2022-02-23 12:35:04 -0800
commit312bc381a3751e397995eeb2e63e66856912fafb (patch)
treeb69109b9e4ebdfddd522a5bef714fe6fb1e14fd5 /util
parentd4ce0b892cbe68db9f90f4015342e6a9069b079c (diff)
filesystem: preserve metadata file permissions on updates
Since fscrypt replaces metadata files rather than overwrites them (to get atomicity), their owner will change to root if root makes a change. That isn't too much of an issue when the files have mode 0644. However, it will become a much bigger issue when the files have mode 0600, especially because existing files with mode 0644 would also get changed to have mode 0600. In preparation for this, start preserving the previous owner and mode of policy and protector files when they are updated.
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions