diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-10-17 02:39:07 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-10-19 02:22:26 -0700 |
| commit | bab7dfdf68075b345e4de3ae79ea685ca884668f (patch) | |
| tree | eced4ecdfd37aae1a92f28ba0864837db1205eb0 /security | |
| parent | b5cc60b2b974645f0d09721c292cd243d049cbcf (diff) | |
Move around and fscrypt refactor
Diffstat (limited to 'security')
| -rw-r--r-- | security/keyring.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keyring.go b/security/keyring.go index ab65631..7ce163e 100644 --- a/security/keyring.go +++ b/security/keyring.go @@ -114,7 +114,7 @@ func UserKeyringID(target *user.User, checkSession bool) (int, error) { return 0, errors.Wrap(ErrAccessUserKeyring, err.Error()) } - if !util.IsUserRoot() { + if util.CurrentUserID() != 0 { // Make sure the returned keyring will be accessible by checking // that it is in the session keyring. if checkSession && !isUserKeyringInSession(uid) { |