Add NACM-specific logging
This commit is contained in:
parent
c9dbece32b
commit
f923524378
2 changed files with 6 additions and 5 deletions
|
|
@ -61,6 +61,7 @@
|
|||
#define CLIXON_DBG_XPATH 0x000008 /* XPath processing */
|
||||
#define CLIXON_DBG_YANG 0x000010 /* YANG processing */
|
||||
#define CLIXON_DBG_CLIENT 0x000020 /* App-specific */
|
||||
#define CLIXON_DBG_NACM 0x000040 /* NACM processing */
|
||||
#define CLIXON_DBG_SMASK 0x00ffff /* Subject mask */
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ nacm_rpc(char *rpc,
|
|||
permit:
|
||||
retval = 1;
|
||||
done:
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "retval:%d (0:deny 1:permit)", retval);
|
||||
clixon_debug(CLIXON_DBG_NACM, "retval:%d (0:deny 1:permit)", retval);
|
||||
if (nsc)
|
||||
xml_nsctx_free(nsc);
|
||||
if (gvec)
|
||||
|
|
@ -770,7 +770,7 @@ nacm_datanode_write(clixon_handle h,
|
|||
permit:
|
||||
retval = 1;
|
||||
done:
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "retval:%d (0:deny 1:permit)", retval);
|
||||
clixon_debug(CLIXON_DBG_NACM, "retval:%d (0:deny 1:permit)", retval);
|
||||
if (pv_list)
|
||||
prepvec_free(pv_list);
|
||||
if (nsc)
|
||||
|
|
@ -1075,7 +1075,7 @@ nacm_datanode_read(clixon_handle h,
|
|||
ok:
|
||||
retval = 0;
|
||||
done:
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "retval:%d", retval);
|
||||
clixon_debug(CLIXON_DBG_NACM, "retval:%d", retval);
|
||||
if (pv_list)
|
||||
prepvec_free(pv_list);
|
||||
if (nsc)
|
||||
|
|
@ -1128,7 +1128,7 @@ nacm_access_check(clixon_handle h,
|
|||
char *wwwuser;
|
||||
#endif
|
||||
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "");
|
||||
clixon_debug(CLIXON_DBG_NACM, "");
|
||||
if ((nsc = xml_nsctx_init(NULL, NACM_NS)) == NULL)
|
||||
goto done;
|
||||
/* Do initial nacm processing common to all access validation in
|
||||
|
|
@ -1181,7 +1181,7 @@ nacm_access_check(clixon_handle h,
|
|||
done:
|
||||
if (nsc)
|
||||
xml_nsctx_free(nsc);
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "retval:%d (0:deny 1:permit)", retval);
|
||||
clixon_debug(CLIXON_DBG_NACM, "retval:%d (0:deny 1:permit)", retval);
|
||||
return retval;
|
||||
permit:
|
||||
retval = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue