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

Normalize ACL's. #5

Merged
merged 1 commit into from
Feb 25, 2014
Merged

Normalize ACL's. #5

merged 1 commit into from
Feb 25, 2014

Conversation

kevincox
Copy link

Added munging of ACL's into the canonical format. The format from
setfacl was used as a guide. With the exception that the type
field can not be left out (defaults to user in setfacl).

In general I tried to be strict. Here are some notes.

  • The type must be either the inital letter or the full type, nothing
    else is accepted.
  • The "who" field is not verified in any way.
  • The permssions field may only contain one of each 'r', 'w' and 'x'
    however the order is not checked. The only other character it can
    contain is '-' which is ignored. An octal digit is also accepted in
    which case it must be the only character.

@kevincox
Copy link
Author

This fixes #4.

Added munging of ACL's into the canonical format.  The format from
setfacl was used as a guide. With the exception that the type
field can not be left out (defaults to user in setfacl).

In general I tried to be strict.  Here are some notes.
- The type must be either the inital letter or the full type, nothing
  else is accepted.
- The "who" field is not verified in any way.
- The permssions field may only contain one of each 'r', 'w' and 'x'
  however the order is not checked.  The only other character it can
  contain is '-' which is ignored. An octal digit is also accepted in
  which case it must be the only character.
@dobbymoodge
Copy link

This looks really good. I will test this as soon as I get a chance, may be a day or two.

@kevincox
Copy link
Author

Awesome, I tried to test every branch so hopefully it checks out.

dobbymoodge added a commit that referenced this pull request Feb 25, 2014
@dobbymoodge dobbymoodge merged commit 8220c94 into voxpupuli:master Feb 25, 2014
@kevincox kevincox deleted the normalize branch September 29, 2014 20:22
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.

2 participants