Skip to content
Snippets Groups Projects
Commit 7f1c9358 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Import using govendor

parent d8098ef9
Branches
Tags
No related merge requests found
# drop
An easy way for dropping privileges in Go. Just import `github.com/sid77/drop` and use:
```
// privileged code here
// ...
if err := DropPrivileges("some user"); err != nil {
log.Fatal(err)
}
// unprivileged code here
// ...
```
drop will take care of calling `setre{s}[g,u]id()` depending on the platform it's being run on.
......@@ -352,6 +352,18 @@
"revision": "d77da356e56a7428ad25149ca77381849a6a5232",
"revisionTime": "2016-06-15T09:26:46Z"
},
{
"checksumSHA1": "7YOxIWN8N07u00fHPvixUpfRlsk=",
"path": "github.com/sid77/drop",
"revision": "d1b109804e16d93bdf43c2cf6cbfe388980c26ff",
"revisionTime": "2016-08-25T18:43:04Z"
},
{
"checksumSHA1": "12GwP9BOFNEwDMDZnqaEcPvdBOo=",
"path": "github.com/sid77/drop/syscall",
"revision": "d1b109804e16d93bdf43c2cf6cbfe388980c26ff",
"revisionTime": "2016-08-25T18:43:04Z"
},
{
"checksumSHA1": "E1899TNqCHhCtr6+joW4YEldRuE=",
"path": "github.com/spf13/cast",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment