nfs-ganesha 1.4
|
Go to the source code of this file.
Functions | |
fsal_status_t | FSAL_test_access (fsal_op_context_t *p_context, fsal_accessflags_t access_type, fsal_attrib_list_t *object_attributes) |
fsal_status_t | FSAL_setattr_access (fsal_op_context_t *p_context, fsal_attrib_list_t *candidate_attributes, fsal_attrib_list_t *object_attributes) |
fsal_status_t | FSAL_rename_access (fsal_op_context_t *pcontext, fsal_attrib_list_t *pattrsrc, fsal_attrib_list_t *pattrdest) |
fsal_status_t | FSAL_create_access (fsal_op_context_t *pcontext, fsal_attrib_list_t *pattr) |
fsal_status_t | FSAL_unlink_access (fsal_op_context_t *pcontext, fsal_attrib_list_t *pattr) |
fsal_status_t | FSAL_merge_attrs (fsal_attrib_list_t *pinit_attr, fsal_attrib_list_t *pnew_attr, fsal_attrib_list_t *presult_attr) |
fsal_status_t FSAL_create_access | ( | fsal_op_context_t * | pcontext, |
fsal_attrib_list_t * | pattr | ||
) |
FSAL_create_access : test if a client identified by cred can create an object within a directory knowing its attributes
pcontext | (in fsal_cred_t *) user's context. |
pattr | source directory attributes |
Definition at line 249 of file FSAL_TEMPLATE/fsal_local_op.c.
fsal_status_t FSAL_merge_attrs | ( | fsal_attrib_list_t * | pinit_attr, |
fsal_attrib_list_t * | pnew_attr, | ||
fsal_attrib_list_t * | presult_attr | ||
) |
FSAL_merge_attrs: merge to attributes structure.
This functions merge the second attributes list into the first argument. Results in returned in the last argument.
pinit_attr | [IN] attributes to be changed |
pnew_attr | [IN] attributes to be added |
presult_attr | [IN] resulting attributes |
Definition at line 305 of file FSAL_TEMPLATE/fsal_local_op.c.
fsal_status_t FSAL_rename_access | ( | fsal_op_context_t * | pcontext, |
fsal_attrib_list_t * | pattrsrc, | ||
fsal_attrib_list_t * | pattrdest | ||
) |
FSAL_rename_access : test if a client identified by cred can be renamed on the object knowing the parents attributes
pcontext | (in fsal_cred_t *) user's context. |
pattrsrc | source directory attributes |
pattrdest | destination directory attributes |
Definition at line 228 of file FSAL_TEMPLATE/fsal_local_op.c.
fsal_status_t FSAL_setattr_access | ( | fsal_op_context_t * | p_context, |
fsal_attrib_list_t * | candidate_attributes, | ||
fsal_attrib_list_t * | object_attributes | ||
) |
FSAL_test_setattr_access : test if a client identified by cred can access setattr on the object knowing its attributes and parent's attributes. The following fields of the object_attributes structures MUST be filled : acls (if supported), mode, owner, group. This doesn't make any call to the filesystem, as a result, this doesn't ensure that the file exists, nor that the permissions given as parameters are the actual file permissions : this must be ensured by the cache_inode layer, using FSAL_getattrs, for example.
cred | (in fsal_cred_t *) user's identifier. |
candidate_attrbutes | the attributes we want to set on the object |
object_attributes | (in fsal_attrib_list_t *) the cached attributes for the object. |
Definition at line 203 of file FSAL_TEMPLATE/fsal_local_op.c.
fsal_status_t FSAL_test_access | ( | fsal_op_context_t * | p_context, |
fsal_accessflags_t | access_type, | ||
fsal_attrib_list_t * | object_attributes | ||
) |
FSAL_test_access : Tests whether the user identified by the p_context structure can access the object as indicated by the access_type parameter. This function tests access rights using cached attributes given as parameter (no calls to filesystem). Thus, it cannot test FSAL_F_OK flag, and asking such a flag will result in a ERR_FSAL_INVAL error.
p_context | (input): Authentication context for the operation (user,...). |
access_type | (input): Indicates the permissions to test. This is an inclusive OR of the permissions to be checked for the user identified by cred. Permissions constants are :
|
object_attributes | (mandatory input): The cached attributes for the object to test rights on. The following attributes MUST be filled : owner, group, mode, ACLs. |
Definition at line 78 of file FSAL_TEMPLATE/fsal_local_op.c.
fsal_status_t FSAL_unlink_access | ( | fsal_op_context_t * | pcontext, |
fsal_attrib_list_t * | pattr | ||
) |
FSAL_unlink_access : test if a client identified by cred can unlink on a directory knowing its attributes
pcontext | (in fsal_cred_t *) user's context. |
pattr | source directory attributes |
Definition at line 276 of file FSAL_TEMPLATE/fsal_local_op.c.