NACM datanode write rules have been changed from looking at datastore being chekend (eg running/candidate/startup) to *only* look at running.
Fixed: NACM datanode write problem: read/write/exec default rules did not work.
This commit is contained in:
parent
78aac85b18
commit
71efe18f94
11 changed files with 205 additions and 158 deletions
|
|
@ -52,16 +52,6 @@ enum nacm_access{
|
|||
NACM_EXEC
|
||||
};
|
||||
|
||||
/*! In RFC8341, NACM defines three access points: rpc
|
||||
* 3.4.4 Incoming RPC Message Validation
|
||||
* 3.4.5 Data Node Access Validation
|
||||
* 3.4.6 Outgoing <notification> Authorization
|
||||
*/
|
||||
enum nacm_point {
|
||||
NACM_RPC,
|
||||
NACM_DATA,
|
||||
NACM_NOTIFICATION,
|
||||
};
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
|
|
@ -69,7 +59,6 @@ int nacm_rpc(char *rpc, char *module, char *username, cxobj *xnacm, cbuf *cbret)
|
|||
int nacm_datanode_read(cxobj *xt, cxobj **xvec, size_t xlen, char *username, cxobj *nacm_xtree);
|
||||
int nacm_datanode_write(cxobj *xt, cxobj *xr, enum nacm_access access,
|
||||
char *username, cxobj *xnacm, cbuf *cbret);
|
||||
int nacm_access_pre(clicon_handle h, char *username, enum nacm_point point, cxobj **xnacmp);
|
||||
int nacm_access(clicon_handle h, char *mode, cxobj *xnacmin, char *username);
|
||||
int nacm_access_pre(clicon_handle h, char *username, cxobj **xnacmp);
|
||||
|
||||
#endif /* _CLIXON_NACM_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue