Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add a test case for a %post that does rm -rf /
I was thinking today about our script handling, and I realized an excellent way to showcase the advancement rpm-ostree makes over traditional package managers is the fact that we survive a `%post` script that does `rm -rf /`! See e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858521 It's been this way ever since we first implemented package layering; the fact that we construct a new root and use bubblewrap to sandbox makes us very resilient to this type of thing. But, let's add a test case for this to be sure we preserve this behavior; for example, if in the future we for some reason we decide to leak some host state into the scripts. Closes: #888 Approved by: jlebon
- Loading branch information