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

Add -p path option to restrict scripts #12

Merged
merged 1 commit into from
Apr 15, 2013

Conversation

Lekensteyn
Copy link
Contributor

As discussed in #11. This patch adds a option to dumb-match the execution path. Globbing, regex matching or matching the leading path is deliberately not done for performance reasons, but more importantly, to keep the code concise and clear.


If the purpose of fcgiwrap is to wrap cgit, then I want to be sure that no other
program can be executed under the privileges of the fcgiwrap user.

When the option -p path is given, only the programs specified by path are
allowed to execute (multiple occurrences of -p are merged to form a list of
allowed programs).

Note that this value will be matched literally, no attempt is done to
canonicalize the path. This also implies that glob patterns or directories will
never match.

If the purpose of fcgiwrap is to wrap cgit, then I want to be sure that no other
program can be executed under the privileges of the fcgiwrap user.

When the option `-p path` is given, only the programs specified by `path` are
allowed to execute (multiple occurrences of `-p` are merged to form a list of
allowed programs).

Note that this value will be matched literally, no attempt is done to
canonicalize the path. This also implies that glob patterns or directories will
never match.
gnosek added a commit that referenced this pull request Apr 15, 2013
Add `-p path` option to restrict scripts
@gnosek gnosek merged commit 1b44aba into gnosek:master Apr 15, 2013
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.

None yet

2 participants