MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ACLInitDefaultUser

Function ACLInitDefaultUser

src/acl.cpp:1054–1061  ·  view source on GitHub ↗

Initialize the default user, that will always exist for all the process * lifetime. */

Source from the content-addressed store, hash-verified

1052/* Initialize the default user, that will always exist for all the process
1053 * lifetime. */
1054void ACLInitDefaultUser(void) {
1055 DefaultUser = ACLCreateUser("default",7);
1056 ACLSetUser(DefaultUser,"+@all",-1);
1057 ACLSetUser(DefaultUser,"~*",-1);
1058 ACLSetUser(DefaultUser,"&*",-1);
1059 ACLSetUser(DefaultUser,"on",-1);
1060 ACLSetUser(DefaultUser,"nopass",-1);
1061}
1062
1063/* Initialization of the ACL subsystem. */
1064void ACLInit(void) {

Callers 2

ACLInitFunction · 0.85
ACLLoadFromFileFunction · 0.85

Calls 2

ACLCreateUserFunction · 0.85
ACLSetUserFunction · 0.85

Tested by

no test coverage detected