Comments (9)
from osbuild.
Hey, @kingsleyzissou!
from osbuild.
cc @achilleas-k @thozza @supakeen
Is this something we can/should be doing? And if we do we could probably omit the bwrap
part. Any suggestions here?
from osbuild.
I'd need a bit more background. It is something we can do and if this is in the oscap
stage then I have no problems with adding this.
What is the OSCAP issue we're having that this solves?
As a sidenote, why is this a special way? This seems to me to be the normal way to give additional environment variables to child processes.
from osbuild.
As far as I recall, and maybe @evgenyz can elaborate, it's being used to identify when remediation is being done offline - so we might handle the remediations differently in offline mode.
A concrete example of this is checking partitions. Currently, the openscap utility tries to check /proc/mounts
which isn't available during image builder. They'd be able to use the environment variable and handle the check differently, in theory.
Edit to add:
I'd probably choose a different variable name though
from osbuild.
Right, if the oscap team is going to switch behavior based on if they're running in $buildsystem then it's a good idea to give them that information; however it'd be nice if that's a bit more 'standard' (as far as a standard exists). How about we pass an environment variable OSCAP_BUILD_SYSTEM=osbuild
? Or is container
in the environment already implemented in oscap?
from osbuild.
Yeah sorry that's what I meant by changing the name of the env variable. I'm not entirely sure if it's implemented elsewhere. So we can wait for Evgeny to get back to us on that
from osbuild.
The container
variable should be already set for the stage when it is run. It should not be need to set a special environment variable when we run subprocess.run()
as it inherits it. Although if that is the only option for oscap
, it can be set. If that's the case, then I would set it to the same value that is set in container
environment variable.
see
Line 297 in 6f81c59
from osbuild.
In that case, please submit a PR with the diff mentioned in the description and from my PoV it should be acceptable to merge it.
from osbuild.
Related Issues (20)
- Oscap Remediation with bug in audit audit_time_rules.rules when using osbuild HOT 12
- Creating ostree images with Unified Core HOT 8
- `test/data/stages/fat/manifest.json` doesn't have a build pipeline, failing the build on EL8
- Run `pyright` as part of the CI in addition to mypy HOT 2
- Expand stage unit tests to cover all current stages
- osbuild devices have inaccurate information in mountinfo inside bwrap HOT 1
- 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
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.