[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks
From: |
Timothy Brownawell |
Subject: |
Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks |
Date: |
Tue, 25 Oct 2005 22:10:58 -0500 |
On Mon, 2005-10-24 at 01:16 +0200, Richard Levitte - VMS Whacker wrote:
> tbrownaw> pattern "net.example.project.{security,private}*"
> tbrownaw> allow "address@hidden"
> tbrownaw> allow "address@hidden"
> tbrownaw>
> tbrownaw> pattern "net.example.{public,project}*"
> tbrownaw> others "allow"
>
> Random response:
>
> I think it's quite confusing how the format is sometimes
> 'verb "subject"' and sometimes 'subject "verb"'. I would rather have
> some kind of consistency:
>
> pattern "net.example.project.{security,private}*"
> allow "address@hidden"
> allow "address@hidden"
>
> pattern "net.example.{public,project}*"
> allow "*"
It now uses this syntax. Keywords are "pattern", "allow", "deny", and
"continue". Every "pattern" line starts a new section, and it will only
"fall through" a block if it has a 'continue "true"' line. "deny" is the
default, so it's only useful in blocks with 'continue "true"' such as
# jim fubared this branch once already...
pattern "net.example.project.foobar*"
allow "address@hidden"
deny "address@hidden"
continue "true"
pattern "net.example.project*"
allow "address@hidden"
allow "address@hidden"
allow "address@hidden"
allow "address@hidden"
[...]
Any line that doesn't match ' *[^ ]* *".*"', or that doesn't have
"allow", "deny", "pattern", or "continue" as the first word is ignored.
Still TODO: the parser just looks for a word followed by a quoted
string. It should probably be improved to handle full basic_io, meaning
escaped chars in the string and any number (0+) of quoted strings using
either "" or [] . It should also be made to recognize comments properly,
possibly including comments at the end of lines with useful info.
allow "joe" # comment about joe
write-permissions is still a simple list of keys, but now with "*"
instead of "--all--".
Tim
- [Monotone-devel] new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Wim Oudshoorn, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Wim Oudshoorn, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Richard Levitte - VMS Whacker, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks,
Timothy Brownawell <=
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Nathaniel Smith, 2005/10/26
- [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Bruce Stephens, 2005/10/26
Re: [Monotone-devel] new default get_netsync_*_permitted hooks, Richard Levitte - VMS Whacker, 2005/10/23
Re: [Monotone-devel] new default get_netsync_*_permitted hooks, Daniel Carosone, 2005/10/23