-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Hauler cannot load copy images to registry from RHEL8 system when $HOME has noexec flag set #249
Comments
hey @NullOranje, thank you for submitting this issue! we will begin testing and validating it and let you know our way forward. please let us know if there is any additional information. |
Dunno if such is STIG compliant but a workaround might be to setup a |
I did something similar. I moved the bin to an allowed path and set a symlink |
I have attempted the workaround for this by trying to do a symbolic link from a lvm that does not have noexec set but I am still getting this error. I also attempted to make the serviced with the following code:
I have turned off selinux and fips to test if that was getting in the way as well and it was still not working. I don't mind looking into resolving if this is not being currently worked. I have had no issues running the binary directly when it is in the /root/.hauler/cosign. |
Hey @NullOranje, that is what most customers are doing when running into this issue. Thanks for your patience on this.
|
Hey @jaredpricedev! If you have the time, then it would be appreciated! We were discussing implementing a similar function to the https://github.com/hauler-dev/hauler/blob/main/cmd/hauler/cli/store/load.go |
Note If you are attempting a work-around until a fix is in place, any alternate location you have setup will need to be:
Note If SELinux is enabled and enforced you will want the If the filesystem that ausearch -m avc -ts recent | grep -E 'hauler|cosign' |
Hey @NullOranje @jaredpricedev... please check out the recent PR and let us know if it looks good. If you have time to test it, please pass along any feedback! git clone https://github.com/zackbradys/hauler.git && cd hauler && make build |
Hey @NullOranje and @jaredpricedev... please let us know if you encounter any issues with |
Environmental Info:
Hauler Version:
Describe the Bug:
hauler store copy <registry>
on a RHEL8 STIG'd system, hauler throws an errorERR fork/exec /home/<user>/.hauler/cosign: operation not permitted"
Steps to Reproduce:
hauler store load <archive>
hauler store copy registry://<registry>
Expected Behavior:
Actual Behavior:
cosign
attempts to run from inside${HOME}/.hauler/cosign
. This is unauthorized behavior according to DISA and blocked.Additional Context:
The text was updated successfully, but these errors were encountered: