diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/sid77/drop/README.md | 17 | ||||
-rw-r--r-- | vendor/vendor.json | 12 |
2 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/sid77/drop/README.md b/vendor/github.com/sid77/drop/README.md new file mode 100644 index 0000000..b27fc1a --- /dev/null +++ b/vendor/github.com/sid77/drop/README.md @@ -0,0 +1,17 @@ +# 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. diff --git a/vendor/vendor.json b/vendor/vendor.json index 62da812..c08fadc 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -353,6 +353,18 @@ "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", "revision": "27b586b42e29bec072fe7379259cc719e1289da6", |