Commit Graph

197 Commits

Author SHA1 Message Date
Sargun Dhillon 3df7b14a22
Merge pull request #2 from Netflix-Skunkworks/unshare
Add tini unshare
2018-05-01 10:36:40 -07:00
Sargun Dhillon 8cee06768b Define CLONE_NEWCGROUP for older platforms 2018-04-30 16:42:22 -07:00
Sargun Dhillon 49a72e53b8 Add tini unshare 2018-04-30 09:52:40 -07:00
Sargun Dhillon 436f0d0274
Merge pull request #1 from Netflix-Skunkworks/tini-handoff
Tini handoff
2018-01-29 17:19:19 -08:00
Sargun Dhillon 9fa32c78e8 Add Tini Handoff Capability
This makes it so that after tini is initialized, it will handoff pid 1 to the
user's program, in the presence of the TINI_HANDOFF variable.
2017-08-29 17:02:29 -07:00
Sargun Dhillon 391dac855a Merge pull request #2 in TN/tini from confirm-to-start to master
* commit '6900453aa76f49feeff11451b0933c16b4f4831f':
  Gate TITUS_CONFIRM to start behind env variable
  Add confirm to launch
2017-07-07 16:19:09 +00:00
Sargun Dhillon 6900453aa7 Gate TITUS_CONFIRM to start behind env variable 2017-06-28 06:01:28 -07:00
Sargun Dhillon c8990384b3 Add confirm to launch 2017-06-27 23:28:10 -07:00
Sargun Dhillon 6924b55bb5 Merge pull request #1 in TN/tini from netflix-changes to master
* commit '8f9385756eb2af282f8aedb5cbb371c3f5c52868':
  Add libattr1-dev to build deps
  Add stdio attribute
  Unset Titus-specific environment variables
  Change variables to be Titus specific
  Set default mode on open
  Add FD swap / redirect stderr code
  Add code to send root fd over unix socket
  Remove optimization flag from C_FLAGS, rely on Cmake to add it
  Add build environment dockerfile
2017-05-03 16:38:16 +00:00
Sargun Dhillon 8f9385756e Add libattr1-dev to build deps 2017-04-24 13:15:58 -07:00
Sargun Dhillon e266387a86 Add stdio attribute 2017-04-22 16:21:23 -07:00
Sargun Dhillon 4f0a972340 Unset Titus-specific environment variables 2017-04-13 11:05:08 -07:00
Sargun Dhillon 9012d088f2 Change variables to be Titus specific 2017-04-12 19:57:07 -07:00
Sargun Dhillon 118c10e8aa Set default mode on open 2017-04-12 12:28:30 -07:00
Sargun Dhillon 0982ad2613 Add FD swap / redirect stderr code 2017-04-12 12:24:21 -07:00
Sargun Dhillon 1f18862ed9 Add code to send root fd over unix socket 2017-04-12 01:50:45 -07:00
Sargun Dhillon fb4aa44ca9 Remove optimization flag from C_FLAGS, rely on Cmake to add it 2017-04-12 01:50:05 -07:00
Sargun Dhillon 3913749796 Add build environment dockerfile 2017-04-11 15:00:41 -07:00
Gangstead 6ad9813ed8 Make Alpine instructions Dockerfile commands (#77)
Make Alpine instructions Dockerfile commands
2017-03-03 20:20:29 +01:00
Thomas Orozco 2c02e14748 Merge pull request #73 from krallin/32bits
Build i386 binary
2017-02-05 13:37:14 +01:00
Thomas Orozco 41cc6b38dd Bump version to v0.14.0 2017-02-05 13:31:47 +01:00
Thomas Orozco 8d569f0419 Update docs to mention 32-bit build 2017-01-28 15:29:33 +01:00
Thomas Orozco a2de1a79f2 Build i386 binary
Fixes https://github.com/krallin/tini/issues/30
2017-01-28 15:24:05 +01:00
Thomas Orozco b837c033f8 Merge pull request #70 from krallin/more-README
Add "Why Tini?" section in the README
2017-01-02 21:22:55 +01:00
Thomas Orozco 39f7778e32 Add "Why Tini?" section in the README
Adds a summary of #8 and a link to that discussion.
2017-01-02 21:16:33 +01:00
Thomas Orozco c6e0058046 Merge pull request #68 from akimd/fix-c-switch
fix C conformance
2016-12-18 20:16:16 +01:00
Akim Demaille 9ecda1bbf1 fix C conformance
Someone has been writing too much Go recently.  This works because
`errno` is typically a macro coming with its own set of parens.
2016-12-18 18:20:44 +01:00
Thomas Orozco 79016ecced Merge pull request #67 from krallin/fix-subreaper
Fix PR_SET_CHILD_SUBREAPER call
2016-12-18 00:33:48 +01:00
Thomas Orozco 81c54470e6 Bump version to 0.13.2 2016-12-18 00:23:57 +01:00
Thomas Orozco 10094b7097 Fix PR_SET_CHILD_SUBREAPER call
PR_SET_CHILD_SUBREAPER actually requires a non-zero argument to `prctl`
in order to work..!

Now, this used to work just fine (and currently works in most places)
because when we use a libc that doesn't know about
PR_SET_CHILD_SUBREAPER, it doesn't do anything about the second argument
passed to `pctrl`, so we end up sending some junk in as the second
argument. What we send appears to be completely random and as such seems
very unlikely to be zero, and so things appear to work (e.g. the tests
all pass, etc.).

However, using a libc that does know about this argument (e.g. Ubuntu
Xenial), things *don't* work because the second argument is
automatically set to 0 when we don't provide one.

This probably went unnoticed for a while considering that `tini-static`
isn't affected (it's built on Trusty), and that this mode isn't enabled
by default in the first place.
2016-12-18 00:19:20 +01:00
Thomas Orozco d83552dfa3 Merge pull request #66 from krallin/add-geek-to-contributors
Add @geek to contributors
2016-12-06 21:01:44 +01:00
Thomas Orozco 82e8cc0fd4 Add @geek to contributors 2016-12-06 20:56:03 +01:00
Thomas Orozco ed34702cbf Merge pull request #65 from krallin/fix-tcsetpgrp-typos
Fix tcsetpgrp typos / Release 0.13.1
2016-12-05 21:07:22 +01:00
Thomas Orozco 042898f255 Bump version to 0.13.1 2016-12-05 21:01:41 +01:00
Thomas Orozco e38caaf9dd Fix some tcsetpgrp error typos 2016-12-05 21:00:08 +01:00
Thomas Orozco d6938f1a63 Merge pull request #64 from geek/master
Support ENXIO on lx-branded zones
2016-12-05 20:59:02 +01:00
Wyatt Preul 657f02ed38 Support possible failure on lx-branded zones 2016-12-03 14:28:07 -06:00
Thomas Orozco 949e6facb7 Merge pull request #63 from krallin/include-preprocessed-license
Include pre-processed license in repo
2016-11-17 20:26:27 +01:00
Thomas Orozco 325bf78674 Include pre-processed license in repo
Also adding a test in run_build.sh to ensure that the pre-processed
license is always up to date with the actual license file.

To recreate: `xxd -i LICENSE > src/license.h`
2016-11-17 20:20:58 +01:00
Thomas Orozco a87614212b Merge pull request #61 from andrewhsu/fix-fwrite
handle return val of fwrite() to pacify compiler warn
2016-11-13 18:31:45 +01:00
Andrew Hsu 1f6e456fc2 handle return val of fwrite() to pacify compiler warn
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-11 12:05:21 -08:00
Thomas Orozco 4a92b9e201 Merge pull request #60 from krallin/white-label
"White label" when MINIMAL is set
2016-11-04 18:11:12 +01:00
Thomas Orozco e8de7825e6 Bump version to 0.13.0 2016-11-04 18:06:25 +01:00
Thomas Orozco c88c1f4ea4 Update outer tests to support MINIMAL 2016-11-04 18:06:25 +01:00
Thomas Orozco b67a024460 Rename NO_ARGS to MINIMAL 2016-11-04 18:06:25 +01:00
Thomas Orozco a60521a432 Add @crosbymichael to contributors 2016-11-04 13:31:19 +01:00
Michael Crosby 51df7df854 Handle execve exit status
This changes the execve exit status for the child process to be inline
with standard exit status codes for common execve failures.

I don't think this breaks any backwards compat with existing tini users
because it is still returning a non zero exit status but with correct
codes providing more information why it failed.
2016-11-04 13:25:14 +01:00
Thomas Orozco b3a2ba638e NO_ARGS: White labelling
- Don't mention options that don't exist in Usage.
- Don't include a log prefix when NO_ARGS is set.
- Turn up the default verbosity to FATAL when NO_ARGS is set.
- Expose verbosity via an ENV var for debugging.
2016-11-04 13:22:41 +01:00
Thomas Orozco a88563ec34 Merge pull request #58 from krallin/version-flag
Add a --version flag
2016-11-03 22:49:40 +01:00
Thomas Orozco 99b7ab7004 Bump version to 0.12.0 2016-11-03 22:38:02 +01:00