Commit graph

321 commits

Author SHA1 Message Date
Chris Kuehl
16ba926e92 Remove pre-commit from CI, using pre-commit.ci instead 2021-10-07 13:24:05 -07:00
Chris Kuehl
c7d5e17525 Remove Travis badge from the README 2021-10-07 13:23:34 -07:00
Chris Kuehl
d2a1f7eae1 Fix some tests that fail under GitHub CI 2021-10-07 13:17:36 -07:00
Chris Kuehl
ba46e1be81 Fix pre-commit 2021-10-07 13:17:36 -07:00
Chris Kuehl
638e8495c9 Switch to GitHub Actions for CI 2021-10-07 13:17:36 -07:00
Chris Kuehl
57f7eebef6 Replace wget URLs for v1.2.5 2021-02-02 15:53:39 -08:00
Chris Kuehl
89c1502b9d v1.2.5 2020-12-10 10:55:42 -08:00
Chris Kuehl
a43367c164
Merge pull request #210 from Villemoes/chdir
chdir to / in parent
2020-12-10 10:53:36 -08:00
Rasmus Villemoes
f6b6492a55 add test for chdir("/") behaviour 2020-12-10 09:01:32 +01:00
Chris Kuehl
48ee49fb4b Update README with 1.2.4 download links 2020-12-07 13:15:30 -08:00
Chris Kuehl
a329d68235
Merge pull request #214 from Yelp/drop-xenial
Drop xenial, bionic; only test on focal, buster
2020-12-07 12:00:25 -08:00
Chris Kuehl
afe68d267f v1.2.4 2020-12-07 11:58:50 -08:00
Chris Kuehl
b945f3aa86
Merge pull request #215 from suve/specify-VERSION-precision-in-printf
Use "%.*s" when printing VERSION
2020-12-07 11:57:17 -08:00
suve
7b838007ab Use "%.*s" when printing VERSION
Commit 7bb2fef0e2 attempted to fix
the "missing NUL-terminator in VERSION" issue by replacing the "%s"
conversion specifier with "%*s". However, this fix itself was wrong,
as "%*s" specifies the field width, i.e. _minimum_ number of characters
to print. The proper solution is to use "%.*s", which specifies the
precision, i.e. the _maximum_ number of printed characters.
2020-12-03 13:45:03 +01:00
Chris Kuehl
b45d13b387 Update README with links to v1.2.3 release 2020-12-02 17:25:07 -08:00
Chris Kuehl
c75c9bc846 Update names of files for sha256sums during release 2020-12-02 17:24:58 -08:00
Chris Kuehl
072a0a7ecb
Merge pull request #211 from sanjaymsh/ppc64le
Travis-ci: updated  support for ppc64le in latest way and added for i…
2020-12-02 15:33:37 -08:00
Chris Kuehl
f856837c39 Drop xenial, bionic; only test on focal, buster 2020-12-02 10:59:00 -08:00
Chris Kuehl
a8be35c2cb v1.2.3 2020-12-02 10:43:58 -08:00
Chris Kuehl
6a0fcbc73c
Merge pull request #213 from suve/ensure-VERSION-is-NUL-terminated
Ensure VERSION is NUL-terminated
2020-12-01 17:02:00 -08:00
suve
7bb2fef0e2 Use "%*s" when printing VERSION
The "%s" conversion specifier expects a NUL-terminated string.
However, the VERSION variable does not contain a NUL-terminator,
so formatting it using "%s" may lead to printing whatever happens
to be in memory next to VERSION.

Using "%*s" allows to specify how many characters to print,
thus making sure we don't go off the array.
2020-12-01 19:59:14 +01:00
sanjaymsh
51cd4f49a4
Update .travis.yml
Removed itest_tox for ppc64le as it was not requied in ppc64le .
2020-10-05 21:11:25 +05:30
sanjay-cpu
2db491e3bb Travis-ci: updated support for ppc64le in latest way and added for itest_tox 2020-10-05 10:13:46 +00:00
Rasmus Villemoes
6c2cf1d06d chdir to / in parent
There's no reason the dumb-init process should hold on to a reference
to the original cwd (but of course the child must be spawned with that
cwd). One example where that can be problematic:

# Terminal 1
$ mkdir -p /tmp/d/e
$ sudo mount --make-shared -t tmpfs tmpfs /tmp/d/e

# Terminal 2
$ docker run -v /tmp/d:/tmp/d:rshared --rm -ti --workdir /tmp/d/e some-image-with-dumb-init bash
root@922ef180b49a:/tmp/d/e# cd ..
root@922ef180b49a:/tmp/d# ls -l /proc/*/cwd
lrwxrwxrwx 1 root root 0 Oct  1 11:25 /proc/1/cwd -> /tmp/d/e
lrwxrwxrwx 1 root root 0 Oct  1 11:25 /proc/6/cwd -> /tmp/d
lrwxrwxrwx 1 root root 0 Oct  1 11:25 /proc/self/cwd -> /tmp/d
lrwxrwxrwx 1 root root 0 Oct  1 11:25 /proc/thread-self/cwd -> /tmp/d

# Terminal 1
$ sudo umount /tmp/d/e
umount: /tmp/d/e: target is busy.

i.e., the application inside the container has already let go of its
reference, but the host is not able to unmount /tmp/d/e because the
container's pid 1 still has one.

As for a test case, the 'docker run --workdir' could be emulated by
something like

  sh -c "cd /tmp/d/e; exec $PWD/dumb-init bash -i"

but one would still need root to do the mount and umount.
2020-10-01 13:55:24 +02:00
Chris Kuehl
2da4dc4591
Merge pull request #202 from chriskuehl/use-kernel-naming-for-architectures
Use kernel naming of architectures in release binaries
2019-12-09 11:43:45 -08:00
Chris Kuehl
a2dfe215e3 Use kernel naming of architectures in release binaries 2019-12-09 11:17:51 -08:00
Chris Kuehl
dc0a492ad0
Merge pull request #200 from asottile/patch-1
Test s390x through travis-ci
2019-12-04 10:25:10 -08:00
Chris Kuehl
bcb22abff5 Remove s390x instructions from CONTRIBUTING 2019-12-04 10:18:20 -08:00
Anthony Sottile
8b24bad35c
Test s390x through travis-c 2019-12-04 09:42:12 -08:00
Chris Kuehl
3cad77a4df
Merge pull request #198 from Yelp/update-contributing-for-arm64
Update release instructions for arm64
2019-11-29 11:02:26 -08:00
Chris Kuehl
5003383eb7 Update release instructions for arm64 2019-11-28 20:16:06 -08:00
Chris Kuehl
e0e1f64d26
Merge pull request #197 from hrw/master
travis: enable aarch64 - #138
2019-11-28 19:52:58 -08:00
Marcin Juszkiewicz
a20ad99d18 travis: enable aarch64 - #138 2019-11-28 08:47:12 +01:00
Chris Kuehl
4d3debba4d
Merge pull request #190 from Yelp/release-s390x-instructions
Add s390x build to release instructions
2019-08-01 13:23:19 -07:00
Chris Kuehl
3ff6a884d4 Add s390x build to release instructions 2019-08-01 13:16:54 -07:00
Chris Kuehl
8572292982
Merge pull request #189 from asottile/current_user
build the package using the current uid/gid
2019-07-31 10:06:33 -07:00
Anthony Sottile
04ea5a9019 build the package using the current uid/gid 2019-07-31 08:48:45 -07:00
Chris Kuehl
daea290393
Merge pull request #187 from Yelp/fix-bitrot-again
Only run tests under Python 3, fix random bitrot
2019-07-15 13:58:29 -07:00
Chris Kuehl
46774f6068 Only run tests under Python 3, fix random bitrot 2019-07-15 13:23:51 -07:00
Chris Kuehl
a0e0776bec
Merge pull request #183 from Yelp/fix-flake8
Fix flake8 failures
2019-02-20 13:28:46 -08:00
Chris Kuehl
9374f3e664 Fix flake8 failures 2019-02-20 13:00:02 -08:00
Chris Kuehl
1722197e81
Merge pull request #182 from zhsj/fix-test
Fix test on slow machines, increasing the sleep time
2019-02-19 11:38:22 -06:00
Shengjing Zhu
0708f2779c Fix test on slow machines, increasing the sleep time
The original sleep time is too short, the tests failed on
architectures like mips*, armhf. I think it's because the
python interpreter can't start in 0.1s.

After increasing the sleep time, it passed on most architectures
which Debian supports.

The result can be found at:
https://buildd.debian.org/status/logs.php?pkg=dumb-init
(compare the build result of 1.2.2-1.1 and 1.2.2-1)

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
2019-02-19 00:08:34 +08:00
Chris Kuehl
f594e57209
Merge pull request #176 from hellerve/master
Nit: add braces around if
2018-08-09 10:19:29 -07:00
hellerve
93e076ae18 nit 2: add braces around for 2018-08-09 15:43:01 +02:00
hellerve
341a453731 nit: add braces around if 2018-08-09 10:59:00 +02:00
Chris Kuehl
b1e978e486 v1.2.2 2018-08-01 16:46:41 -07:00
Chris Kuehl
9f490af235
Merge pull request #174 from chriskuehl/fix-race
Fix SIGHUP/SIGCONT sometimes reaching the child due to tty quirks
2018-08-01 16:35:27 -07:00
Chris Kuehl
53ca2265d1 Temporarily allow the linux-ppc64le tests to fail
This is due to #175.
2018-08-01 16:26:27 -07:00
Chris Kuehl
7d3aa2fc2b Fix SIGHUP/SIGCONT race condition 2018-08-01 16:20:16 -07:00