reverted internal-rpc nacm rule
This commit is contained in:
parent
3f3f70dfd6
commit
5fd092b785
5 changed files with 7 additions and 24 deletions
|
|
@ -808,7 +808,7 @@ nacm_access(char *mode,
|
|||
goto permit;
|
||||
/* 0. If nacm-mode is external, get NACM defintion from separet tree,
|
||||
otherwise get it from internal configuration */
|
||||
if (strcmp(mode, "external") && strcmp(mode, "internal") && strcmp(mode, "internal-rpc")){
|
||||
if (strcmp(mode, "external") && strcmp(mode, "internal")){
|
||||
clicon_err(OE_XML, 0, "Invalid NACM mode: %s", mode);
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -884,15 +884,6 @@ nacm_access_pre(clicon_handle h,
|
|||
if (xmldb_get(h, "running", "nacm", 0, &xnacm0, NULL) < 0)
|
||||
goto done;
|
||||
}
|
||||
else if (strcmp(mode, "internal-rpc")==0){
|
||||
/* Special mode only implemet exec rpc access point */
|
||||
if (point == NACM_RPC){
|
||||
if (xmldb_get(h, "running", "nacm", 0, &xnacm0, NULL) < 0)
|
||||
goto done;
|
||||
}
|
||||
else
|
||||
goto permit;
|
||||
}
|
||||
}
|
||||
/* If config does not exist then the operation is permitted(?) */
|
||||
if (xnacm0 == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue