软件包:gosu(1.14-1 以及其他的)
gosu 的相关链接
Debian 的资源:
下载源码包 gosu:
维护小组:
- pkg-go (QA 页面, 邮件存档)
- Tianon Gravi (QA 页面)
外部的资源:
- 主页 [github.com]
相似软件包:
Simple Go-based setuid+setgid+setgroups+exec
This is a simple tool grown out of the simple fact that "su" and "sudo" have very strange and often annoying TTY and signal-forwarding behavior. They're also somewhat complex to setup and use (especially in the case of "sudo"), which allows for a great deal of expressivity, but falls flat if all you need is "run this specific application as this specific user and get out of the pipeline".
The core of how "gosu" works is stolen directly from how Docker/libcontainer itself starts an application inside a container (and in fact, is using the "/etc/passwd" processing code directly from libcontainer's codebase).
Once the user/group is processed, we switch to that user, then we "exec" the specified process and "gosu" itself is no longer resident or involved in the process lifecycle at all. This avoids all the issues of signal passing and TTY, and punts them to the process invoking "gosu" and the process being invoked by "gosu", where they belong.
下载 gosu
硬件架构 | 版本 | 软件包大小 | 安装后大小 | 文件 |
---|---|---|---|---|
amd64 | 1.14-1+b6 | 748.1 kB | 2,185.0 kB | [文件列表] |
arm64 | 1.14-1+b6 | 646.7 kB | 2,225.0 kB | [文件列表] |
armel | 1.14-1+b6 | 674.9 kB | 2,204.0 kB | [文件列表] |
armhf | 1.14-1+b6 | 668.1 kB | 2,140.0 kB | [文件列表] |
i386 | 1.14-1+b6 | 734.5 kB | 2,091.0 kB | [文件列表] |
mips64el | 1.14-1+b6 | 611.3 kB | 2,499.0 kB | [文件列表] |
mipsel | 1.14-1+b6 | 622.6 kB | 2,408.0 kB | [文件列表] |
ppc64el | 1.14-1+b6 | 639.6 kB | 2,161.0 kB | [文件列表] |
s390x | 1.14-1+b6 | 682.6 kB | 2,353.0 kB | [文件列表] |