Add comments to policy files.
This commit is contained in:
parent
c23cc480b8
commit
dc4d9b32f1
@ -1 +1,6 @@
|
|||||||
|
## Note that policy parsing stops at the first match,
|
||||||
|
## so adding anything below "$anyvm $anyvm action" line will have no effect
|
||||||
|
|
||||||
|
## Please use a single # to start your custom comments
|
||||||
|
|
||||||
$anyvm $anyvm ask,user=root
|
$anyvm $anyvm ask,user=root
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
|
## Note that policy parsing stops at the first match,
|
||||||
|
## so adding anything below "$anyvm $anyvm action" line will have no effect
|
||||||
|
|
||||||
|
## Please use a single # to start your custom comments
|
||||||
|
|
||||||
$anyvm $dispvm allow
|
$anyvm $dispvm allow
|
||||||
$anyvm $anyvm ask
|
$anyvm $anyvm ask
|
||||||
|
@ -1 +1,6 @@
|
|||||||
|
## Note that policy parsing stops at the first match,
|
||||||
|
## so adding anything below "$anyvm $anyvm action" line will have no effect
|
||||||
|
|
||||||
|
## Please use a single # to start your custom comments
|
||||||
|
|
||||||
$anyvm dom0 allow
|
$anyvm dom0 allow
|
||||||
|
@ -1 +1,6 @@
|
|||||||
|
## Note that policy parsing stops at the first match,
|
||||||
|
## so adding anything below "$anyvm $anyvm action" line will have no effect
|
||||||
|
|
||||||
|
## Please use a single # to start your custom comments
|
||||||
|
|
||||||
$anyvm dom0 allow
|
$anyvm dom0 allow
|
||||||
|
@ -12,6 +12,10 @@ def line_to_dict(line):
|
|||||||
tokens=line.split()
|
tokens=line.split()
|
||||||
if len(tokens) < 3:
|
if len(tokens) < 3:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if tokens[0][0] == '#':
|
||||||
|
return None
|
||||||
|
|
||||||
dict={}
|
dict={}
|
||||||
dict['source']=tokens[0]
|
dict['source']=tokens[0]
|
||||||
dict['dest']=tokens[1]
|
dict['dest']=tokens[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user