]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
pam_fscrypt: update to handle filesystem keyring
authorEric Biggers <ebiggers@google.com>
Mon, 16 Dec 2019 03:31:39 +0000 (19:31 -0800)
committerEric Biggers <ebiggers@google.com>
Sun, 5 Jan 2020 18:02:13 +0000 (10:02 -0800)
commitd0ac36dcea341ff000aca983dd80e7bef9fc30ec
tree673eef073fd0646bbc16bc088a315d0dfe68dfb7
parent0829eb74863bd279ae012779e52040ecc7f7178e
pam_fscrypt: update to handle filesystem keyring

FS_IOC_ADD_ENCRYPTION_KEY and FS_IOC_REMOVE_ENCRYPTION_KEY require root
for v1 policy keys, so update the PAM module to re-acquire root
privileges while provisioning/deprovisioning policies that need this.

Also, only set up the user keyring if it will actually be used.
actions/policy.go
pam/pam.go
pam_fscrypt/pam_fscrypt.go