Robert Kroeger | dd07b36 | 2014-09-18 17:34:42 -0700 | [diff] [blame] | 1 | package main |
| 2 | |
| 3 | // suidhelper should be installed setuid root. Having done this, it will |
| 4 | // run the provided command as the specified user identity. |
| 5 | // suidhelper deliberately attempts to be as simple as possible to |
| 6 | // simplify reviewing it for security concerns. |
| 7 | |
| 8 | import ( |
| 9 | "flag" |
| 10 | "os" |
| 11 | |
| 12 | "veyron.io/veyron/veyron/services/mgmt/suidhelper/impl" |
| 13 | ) |
| 14 | |
| 15 | func main() { |
| 16 | flag.Parse() |
| 17 | if err := impl.Run(os.Environ()); err != nil { |
| 18 | flag.Usage() |
| 19 | } |
| 20 | } |