mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #687: Change the default ACL rule creation
This commit is contained in:
parent
edc10ea98f
commit
076ebcfa10
@ -61,6 +61,14 @@ AclManager::AclManager(SqlDB * _db) : db(_db), lastOID(-1)
|
||||
db->exec(oss, this);
|
||||
|
||||
unset_callback();
|
||||
|
||||
if (lastOID == -1)
|
||||
{
|
||||
// Add a default rule
|
||||
// @1 VM+NET+IMAGE+TEMPLATE/* CREATE+INFO_POOL_MINE
|
||||
string error_str;
|
||||
add_rule(0x200000001LL, 0x2d400000000LL, 0x41LL, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@ -469,11 +477,6 @@ void AclManager::bootstrap(SqlDB * _db)
|
||||
ostringstream oss(db_bootstrap);
|
||||
|
||||
_db->exec(oss);
|
||||
|
||||
// Add a default rule
|
||||
// @1 VM+NET+IMAGE+TEMPLATE/* CREATE+INFO_POOL_MINE
|
||||
AclRule default_rule(0, 0x200000001LL, 0x2d400000000LL, 0x41LL);
|
||||
insert(&default_rule, _db);
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user