Debian Codegraph @

debian/control

raw
1 Source: gosu
2 Section: admin
3 Priority: optional
4 Maintainer: pkg-go <[email protected]>
5 Uploaders: Tianon Gravi <[email protected]>
6 Build-Depends: debhelper-compat (= 13),
7 dh-golang,
8 golang-github-moby-sys-dev (>= 0.0~git20230918~),
9 golang-go (>= 2:1.17~)
10 Standards-Version: 4.6.0
11 Homepage: https://github.com/tianon/gosu
12 Vcs-Git: https://salsa.debian.org/go-team/packages/gosu.git
13 Vcs-Browser: https://salsa.debian.org/go-team/packages/gosu
14 XS-Go-Import-Path: github.com/tianon/gosu
15 Rules-Requires-Root: no
16
17 Package: gosu
18 Architecture: linux-any
19 Depends: ${misc:Depends}, ${shlibs:Depends}
20 Built-Using: ${misc:Built-Using}
21 Description: Simple Go-based setuid+setgid+setgroups+exec
22 This is a simple tool grown out of the simple fact that "su" and "sudo" have
23 very strange and often annoying TTY and signal-forwarding behavior. They're
24 also somewhat complex to setup and use (especially in the case of "sudo"),
25 which allows for a great deal of expressivity, but falls flat if all you need
26 is "run this specific application as this specific user and get out of the
27 pipeline".
28 .
29 The core of how "gosu" works is stolen directly from how Docker/libcontainer
30 itself starts an application inside a container (and in fact, is using the
31 "/etc/passwd" processing code directly from libcontainer's codebase).
32 .
33 Once the user/group is processed, we switch to that user, then we "exec" the
34 specified process and "gosu" itself is no longer resident or involved in the
35 process lifecycle at all. This avoids all the issues of signal passing and TTY,
36 and punts them to the process invoking "gosu" and the process being invoked by
37 "gosu", where they belong.