Skip to content
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

Allow multiple values for EXEC_ROOT #9

Open
mdklatt opened this issue May 24, 2023 · 1 comment
Open

Allow multiple values for EXEC_ROOT #9

mdklatt opened this issue May 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mdklatt
Copy link
Owner

mdklatt commented May 24, 2023

Remote execution is a major security concern, and the purpose of EXEC_ROOT is to limit access to a single directory hierarchy. However, limiting this directive to a single value may encourage overly-broad access. For example, to allow access to both /usr/local/bin/foo and ~/bin/bar, EXEC_ROOT = "/" is required, which is dangerously insecure. A workaround would be use a symlink (e.g. ln -s /usr/local/bin/foo ~/bin/foo) and enable FOLLOW_LINKS, but this is also less secure.

EXEC_ROOT should also accept an array of root directories, e.g. EXEC_ROOT = ["/usr/local/bin", "~/bin"].

There also needs to be more fine-grained access control, such as a list of allowed commands.

@mdklatt mdklatt added the enhancement New feature or request label May 24, 2023
@mdklatt
Copy link
Owner Author

mdklatt commented May 24, 2023

There is a workaround for fine-grained access: Create a directory containing only links
to allowed commands, and use that as EXEC_ROOT (FOLLOW_LINKS must be enabled). Maybe this is sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant