Skip to content

Add steps to make it work wit SELinux#1

Open
EduCampi wants to merge 1 commit into
timcharper:mainfrom
EduCampi:patch-1
Open

Add steps to make it work wit SELinux#1
EduCampi wants to merge 1 commit into
timcharper:mainfrom
EduCampi:patch-1

Conversation

@EduCampi

Copy link
Copy Markdown

Services are not meant to launch binaries under /var, which is where Vanta installs its binaries and points the service to. Ideally, those would be moved somewhere like /usr/local/bin/vanta , but it turns out the path is also hardcoded in the binaries themselves, so they'll try creating logs, lock files, and looking for their binaries in that hardcoded location. To workaround that, we need to modify the SE context tag to make the folder and its binaries look like, well, binaries.

It is important to also check /etc/vanta.conf to ensure the key and owner are configured properly.

This is verified to work in a Fedora atomic distro like Fedora Kinoite. It was necessary to manually copy over the binaries as the rpm-ostree installation method only installed the service definition and conf files, but was unable to create the /var/vanta folder.

Services are not meant to launch binaries under /var, which is where Vanta installs its binaries and points the service to. Ideally, those would be moved somewhere like /usr/local/bin/vanta , but it turns out the path is also hardcoded in the binaries themselves, so they'll try creating logs, lock files, and looking for their binaries in that hardcoded location. To workaround that, we need to modify the SE context tag to make the folder and its binaries look like, well, binaries. 

It is important to also check /etc/vanta.conf to ensure the key and owner are configured properly.

This is verified to work in a Fedora atomic distro like Fedora Kinoite. It was necessary to manually copy  over the binaries as the ` rpm-ostree`  installation method only installed the service definition and conf files, but was unable to create the /var/vanta folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant