diff options
| author | Joseph Richey <joerichey@google.com> | 2018-09-05 22:49:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-05 22:49:42 -0700 |
| commit | 0294624efdef9b78e305453b740d380a64583324 (patch) | |
| tree | f54c9498224727db334d2e9b2b5bc0707838da67 /security/privileges.go | |
| parent | 0f451a722918f39fa07bd9337e4a14ca154b13ae (diff) | |
| parent | f270dfadb9af9e81ae4c884a3ea45ca4618a7a05 (diff) | |
Merge pull request #106 from fristonio/spell-check
feat(spell-check): add make command for spell check.
Diffstat (limited to 'security/privileges.go')
| -rw-r--r-- | security/privileges.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/privileges.go b/security/privileges.go index c9bfde7..649bc30 100644 --- a/security/privileges.go +++ b/security/privileges.go @@ -93,7 +93,7 @@ func ProcessPrivileges() (*Privileges, error) { return &Privileges{euid, egid, groups}, nil } -// UserPrivileges returns the defualt privileges for the specified user. +// UserPrivileges returns the default privileges for the specified user. func UserPrivileges(user *user.User) (*Privileges, error) { privs := &Privileges{ euid: C.uid_t(util.AtoiOrPanic(user.Uid)), @@ -122,7 +122,7 @@ func SetProcessPrivileges(privs *Privileges) error { // the groups/egid/euid, regardless of our original euid. C.seteuid(0) - // Seperately handle the case where the user is in no groups. + // Separately handle the case where the user is in no groups. numGroups := C.size_t(len(privs.groups)) groupsPtr := (*C.gid_t)(nil) if numGroups > 0 { |