aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-10-17 02:39:07 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-10-19 02:22:26 -0700
commitbab7dfdf68075b345e4de3ae79ea685ca884668f (patch)
treeeced4ecdfd37aae1a92f28ba0864837db1205eb0 /security
parentb5cc60b2b974645f0d09721c292cd243d049cbcf (diff)
Move around and fscrypt refactor
Diffstat (limited to 'security')
-rw-r--r--security/keyring.go2
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) {