-
Notifications
You must be signed in to change notification settings - Fork 1
/
policies.re
49 lines (34 loc) · 1.95 KB
/
policies.re
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# \file
# \brief Default policies for Sudo microservices.
#
# This file is in the public domain.
# This is a list of default policy implementations. All rules fail by
# default.
# To allow a certain sudo action, implement the corresponding pre- and
# post- rules.
# User and group management {{{
acPreSudoUserAdd(*userName, *initialAttr, *initialValue, *initialUnit, *policyKv) { fail; }
acPostSudoUserAdd(*userName, *initialAttr, *initialValue, *initialUnit, *policyKv) { fail; }
acPreSudoUserRemove(*userName, *policyKv) { fail; }
acPostSudoUserRemove(*userName, *policyKv) { fail; }
acPreSudoGroupAdd(*groupName, *initialAttr, *initialValue, *initialUnit, *policyKv) { fail; }
acPostSudoGroupAdd(*groupName, *initialAttr, *initialValue, *initialUnit, *policyKv) { fail; }
acPreSudoGroupRemove(*groupName, *policyKv) { fail; }
acPostSudoGroupRemove(*groupName, *policyKv) { fail; }
acPreSudoGroupMemberAdd(*groupName, *userName, *policyKv) { fail; }
acPostSudoGroupMemberAdd(*groupName, *userName, *policyKv) { fail; }
acPreSudoGroupMemberRemove(*groupName, *userName, *policyKv) { fail; }
acPostSudoGroupMemberRemove(*groupName, *userName, *policyKv) { fail; }
# }}}
# ACL operations {{{
acPreSudoObjAclSet(*recursive, *accessLevel, *otherName, *objPath, *policyKv) { fail; }
acPostSudoObjAclSet(*recursive, *accessLevel, *otherName, *objPath, *policyKv) { fail; }
# }}}
# Metadata operations {{{
acPreSudoObjMetaSet(*objName, *objType, *attribute, *value, *unit, *policyKv) { fail; }
acPostSudoObjMetaSet(*objName, *objType, *attribute, *value, *unit, *policyKv) { fail; }
acPreSudoObjMetaAdd(*objName, *objType, *attribute, *value, *unit, *policyKv) { fail; }
acPostSudoObjMetaAdd(*objName, *objType, *attribute, *value, *unit, *policyKv) { fail; }
acPreSudoObjMetaRemove(*objName, *objType, *wildcards, *attribute, *value, *unit, *policyKv) { fail; }
acPostSudoObjMetaRemove(*objName, *objType, *wildcards, *attribute, *value, *unit, *policyKv) { fail; }
# }}}