Comments (3)
@mvo5 I am wondering if this should be maybe more general test - dropping all caps for all stages and expect them to fail?
from osbuild.
I'd quite like if we can move to capabilities being required in stages and reducing the default set of capabilities given. I don't know if that's what you had in mind or if that makes the scope too large?
from osbuild.
I personally would start simple and just inspect tar initially, it seems to test if we need CAP_MAC_ADMIN here we would have to try something like this:
- ensure we run on both selinux and non-selinux system as they might behave differently. on a non-selinux system CAP_MAC_ADMIN should actually not be needed by tar because it's all just xattrs to them but on selinux enabled hosts this is different
- create a test dir with dirs/files with "unknown" (to the host) selinux attributes, i.e. not use something like
etc_t
but mayberandomz_t
or something - write a stage test to ensure the stage really runs under bwrap so that the cap handling happens
- check that there are no selinux denials and that the resulting tar archive has correct selinux attributes
I'm afraid it's a bit of work :/
from osbuild.
Related Issues (20)
- mounts/devices don't allow actual disk topology confusing some tools HOT 4
- osbuild/objectstore.py failure when trying bootc-image-builder on macOS HOT 1
- `osbuild-mpp` not terminating because of dnf cache HOT 9
- [Azure] Provision VM failed on Azure because 91-azure_datasource.cfg format is incorrect
- BLS entries consistency across architectures HOT 7
- source/containers-storage: storage options
- util/mount: allow `rw` mode
- Add tests for systemd.unit.create stage HOT 2
- Support more kickstart options
- `TestStages.test_skopeo_with_localstorage` failing on CentOS Stream 8 HOT 6
- [packit] Propose downstream failed for release v110
- Unable to add Python 3.12 to CI due to dependency bugs HOT 3
- Set password expiry for users
- Modules gain `check` functionality. HOT 1
- JSON indentation consistency HOT 5
- Keep yum/dnf metadata when installing packages HOT 1
- Exception in org.osbuild.curl when using rhsm secrets
- Sources need tests
- Need a replacement for haya14busa/action-workflow_run-status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osbuild.