aboutsummaryrefslogtreecommitdiff
path: root/pam_fscrypt/run_test.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2018-08-22 05:23:00 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2018-08-23 11:00:34 -0700
commit315f9b042237200174a1fb99427f74027e191d66 (patch)
tree8451aa6f72e232ce1ebdb7d79e393f4de26cc0a6 /pam_fscrypt/run_test.go
parent3022c1603d968c22f147b4a2c49c4637dd1be91b (diff)
Ensure keyring privilege changes are reversible
This change makes sure that, when we set the ruid and euid in order to get the user keyring linked into the current process keyring, we will always be able to reverse these changes (using a suid of 0). This fixes an issue where "su <user>" would result in a system error when called by an unprivileged user. It also explains exactly how and why we are making these privilege changes.
Diffstat (limited to 'pam_fscrypt/run_test.go')
0 files changed, 0 insertions, 0 deletions