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

Proposal for passing a structure to ACL checking routines #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

riton
Copy link
Contributor

@riton riton commented Aug 5, 2014

In order to efficiently create an external ACL checking function, it would be really convenient to have access to the full request made by the remote user.
The structure I've created here allow access to

  • user (as before)
  • requested command
  • requested subcommand
  • requested arguments

This could allow further development of a very generic external ACL checking function that has access to all those informations to allow or deny access.

* For now this helper only introduce the `new_request` function that (stupidly, without freeing memory)
create a new request base on a `struct request` members.
* acl-helpers header file introduce macro `USER_ONLY_REQUEST` that allow previous tests to work
with as few modifications as possible (by just passing _username_ to the check function)
…e user.

* The struct request is meant to be used by acl that requires _full_ information requested by remote
user (command, subcommand, args, ...)
@rra rra self-assigned this Oct 22, 2015
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