| nfs-ganesha 1.4 | 
#include <string.h>#include <rpc/rpc.h>#include <rpc/xdr.h>#include "nfs4.h"#include "fsal_internal.h"#include "fsal_convert.h"#include "fsal_common.h"#include "nfs_proto_functions.h"#include "fsal_nfsv4_macros.h"Go to the source code of this file.
| Functions | |
| fsal_status_t | PROXYFSAL_test_access (fsal_op_context_t *p_context, fsal_accessflags_t access_type, fsal_attrib_list_t *object_attributes) | 
| fsal_status_t | PROXYFSAL_setattr_access (fsal_op_context_t *p_context, fsal_attrib_list_t *pcandidate_attributes, fsal_attrib_list_t *pobject_attributes) | 
| fsal_status_t PROXYFSAL_setattr_access | ( | fsal_op_context_t * | p_context, | 
| fsal_attrib_list_t * | pcandidate_attributes, | ||
| fsal_attrib_list_t * | pobject_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.
| p_context | user's context. | 
| pcandidate_attrbutes | the attributes we want to set on the object | 
| pobject_attributes | (in fsal_attrib_list_t *) the cached attributes for the object. | 
Definition at line 219 of file FSAL_PROXY/fsal_local_op.c.
| fsal_status_t PROXYFSAL_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 95 of file FSAL_PROXY/fsal_local_op.c.
 1.7.3
 1.7.3