int (*chmod) ( resmgr_context_t *ctp, io_chmod_t *msg, RESMGR_OCB_T *ocb )
struct _io_chmod { uint16_t type; uint16_t combine_len; mode_t mode; }; typedef union { struct _io_chmod i; } io_chmod_t;
The default implementation iofunc_chmod_default() calls the helper function iofunc_chmod() to check that the client is the owner of the file (i.e., that it has the same user ID) and that it's not a read-only filesystem. The helper function also prevents the user from setting the sticky bit and the set group ID bit unless it is root.