Skip to content
Sections
>> Trisquel >> 软件包 >> etiona-updates >> admin >> gosu
etiona  ] [  etiona-updates  ] [  nabia  ] [  nabia-security  ] [  nabia-updates  ] [  aramo  ]
[ 源代码: gosu  ]

软件包: gosu (1.10-1ubuntu0.18.04.1)

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 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libc6 (>= 2.3.6-6~) [i386]
    GNU C Library: Shared libraries
    同时作为一个虚包由这些包填实: libc6-udeb
    dep: libc6 (>= 2.4) [amd64]

下载 gosu

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 426.1 kB1379 kB [文件列表]
i386 408.9 kB1196 kB [文件列表]