rpm-ostree/tests/vmcheck
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
..
fetch-journal.sh vmcheck: prep for parallel runs 2017-03-13 00:42:13 +00:00
install.sh tests: Correctly error out if some part of install.sh fails 2017-11-29 14:42:25 +00:00
multitest.py multitest.py: error if no hosts given 2017-08-15 15:40:35 +00:00
overlay.sh tests: Use ostree commit --consume 2017-11-29 15:07:25 +00:00
sync.sh daemon: add RPMOSTREE_DEBUG_DISABLE_DAEMON_IDLE_EXIT 2017-10-12 15:35:44 +00:00
test-basic.sh status: Render ostree metadata source-title key 2017-10-25 03:37:05 +00:00
test-download-only.sh Lift 'override' out of experimental 2017-11-08 03:35:08 +00:00
test-initramfs.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-kernel-args.sh tests/vmcheck: add deploy-index and proc-cmd test for kargs 2017-11-06 18:49:36 +00:00
test-layering-basic.sh daemon: Unify pkgcache with system repo 2017-12-01 15:41:40 +00:00
test-layering-gpg.sh tests/libvm: use rsync and add yumrepo mode 2017-10-06 18:20:59 +00:00
test-layering-local.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-non-root-caps.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-relabel.sh vmcheck: add SELinux labeling tests 2017-10-03 01:01:14 +00:00
test-layering-relayer.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-rpmdb.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-scripts.sh scripts: Drop most capabilities 2017-12-05 02:54:23 +00:00
test-layering-unified.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-livefs.sh WIP: Implement ex livefs --replace 2017-10-05 13:19:20 +00:00
test-override-local-replace.sh Lift 'override' out of experimental 2017-11-08 03:35:08 +00:00
test-override-remove.sh Lift 'override' out of experimental 2017-11-08 03:35:08 +00:00
test.sh app: add --download-only option 2017-10-16 17:49:51 +00:00