nfs-ganesha 1.4
|
#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "FSAL/access_check.h"
Go to the source code of this file.
Functions | |
fsal_status_t | XFSFSAL_test_access (fsal_op_context_t *p_context, fsal_accessflags_t access_type, fsal_attrib_list_t *p_object_attributes) |
fsal_status_t XFSFSAL_test_access | ( | fsal_op_context_t * | p_context, |
fsal_accessflags_t | access_type, | ||
fsal_attrib_list_t * | p_object_attributes | ||
) |
FSAL_test_access : Tests whether the user or entity identified by its cred can access the object as indicated by the access_type parameter. This function tests access rights using cached attributes given as parameter. Thus, it cannot test FSAL_F_OK flag, and asking such a flag will result in a ERR_FSAL_INVAL error.
cred | (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 76 of file FSAL_XFS/fsal_local_op.c.