summaryrefslogtreecommitdiff
path: root/example/example.rules
blob: 53e8d8249084c3ae566ca137885c8165e08f462e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- This is the example ruleset for the Lace example
--
-- Any line which starts with --, # or // is a comment.
# So this is also a comment
// As is this

-- This line uses the equality control type defined
-- in the example to construct a predicate which
-- can be used to allow access.
define success equals want_to_pass yes

-- This line allows access if the predicate passes
allow "Ok" success

-- Since the previous result was 'allow' the automatic defaulting
-- process will insert a deny at the end of the ruleset.  No ruleset
-- will ever return anything but allow, deny or an error.  The engine
-- sees to this.