]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
Set owner of login protectors to correct user
authorEric Biggers <ebiggers@google.com>
Mon, 20 Dec 2021 03:19:25 +0000 (21:19 -0600)
committerEric Biggers <ebiggers@google.com>
Mon, 20 Dec 2021 03:44:59 +0000 (21:44 -0600)
commit4c7c6631cc5a27cc6b4431f5ad3805a2d624c5f5
treeb22856e0d3392a2def633d961ad29c2890ce4fb2
parent360467d0df626d2d0eac003a0a210814910804ce
Set owner of login protectors to correct user

When the root user creates a login protector for a non-root user, make
sure to chown() the protector file to make it owned by the user.
Without this, the protector cannot be updated by the user, which causes
it to get out of sync if the user changes their login passphrase.

Fixes https://github.com/google/fscrypt/issues/319
cli-tests/t_encrypt_login.out
cli-tests/t_encrypt_login.sh
filesystem/filesystem.go
util/util.go