rpm-ostree/ci
Colin Walters 90f9fe80e4 scripts: Drop most capabilities
Note this PR requires [bubblewrap 0.2.0](https://github.com/projectatomic/bubblewrap/releases/tag/v0.2.0).

Change our bwrap invocations drop truly dangerous capabilities like
`cap_sys_admin` and `cap_sys_module` just like Docker does today. Because of the
popularity of Docker, we can be pretty sure that most RPM scripts should have
adapted to this (although a problematic area here is that traditional librpm
doesn't actually error out if scripts fail).

There are two reasons to do this:

 - We want "offline" updates by default; updates shouldn't affect the
   running system.  If we prepare the new root in the background, a
   %post shouldn't restart a service for example.  We already "handle"
   this by making `systemctl` a symlink to `/bin/true`, but this approach
   also shuts off `%post`s that do e.g. `insmod`.
 - Protection against accidental system damage

Closes: #1099
Approved by: jlebon
2017-12-05 02:54:23 +00:00
..
build-check.sh ci: run clang build with -Werror 2017-10-04 21:10:55 +00:00
build.sh scripts: Drop most capabilities 2017-12-05 02:54:23 +00:00
ci-commitmessage-submodules.sh ci: workaround broken fedora:26 image 2017-09-07 12:27:54 +00:00
codestyle.sh Remove all tabs ⭾ in *.[ch] and add a CI check for them 2017-06-22 01:20:55 +00:00
libbuild.sh ci: Sync with ostree 2017-09-24 13:32:00 +00:00