Allow custom files and directories to be added the the getter landlock #20315
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/artifact
type/enhancement
Proposal
I would like to be able to configure the landlock in the getter to include custom files + directories
I propose adding config to ArtifactConfig. I'll raise a PR later
Use-cases
Currently I set SSL_CERT_DIR=<CUSTOM_DIRECTORY>:/etc/ssl/certs:/etc/pki/tls/certs to allow the getter to use ca certificates I have in a custom directory.
The default git on RHEL also needs access to "/dev/urandom"
A link to the git code: -
https://github.com/git/git/blob/19981daefd7c147444462739375462b49412ce33/wrapper.c#L797
In order to turn on landlock, I need to add read access to these paths
Attempted Solutions
I have turned off landlock, so that I can access these paths, but I would like the extra security.
I can't add the certificates to the OS.
The text was updated successfully, but these errors were encountered: