RTEMS  5.1
Macros | Functions
sup_fs_check_permissions.c File Reference

RTEMS File System Permissions Check Support. More...

#include <sys/stat.h>
#include <rtems/libio_.h>

Macros

#define RTEMS_FS_USR_SHIFT   6
 
#define RTEMS_FS_GRP_SHIFT   3
 
#define RTEMS_FS_OTH_SHIFT   0
 

Functions

 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_READ<< RTEMS_FS_USR_SHIFT)==S_IRUSR, S_IRUSR)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_READ<< RTEMS_FS_GRP_SHIFT)==S_IRGRP, S_IRGRP)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_READ<< RTEMS_FS_OTH_SHIFT)==S_IROTH, S_IROTH)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_WRITE<< RTEMS_FS_USR_SHIFT)==S_IWUSR, S_IWUSR)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_WRITE<< RTEMS_FS_GRP_SHIFT)==S_IWGRP, S_IWGRP)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_WRITE<< RTEMS_FS_OTH_SHIFT)==S_IWOTH, S_IWOTH)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_EXEC<< RTEMS_FS_USR_SHIFT)==S_IXUSR, S_IXUSR)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_EXEC<< RTEMS_FS_GRP_SHIFT)==S_IXGRP, S_IXGRP)
 
 RTEMS_STATIC_ASSERT ((RTEMS_FS_PERMS_EXEC<< RTEMS_FS_OTH_SHIFT)==S_IXOTH, S_IXOTH)
 
bool rtems_filesystem_check_access (int flags, mode_t object_mode, uid_t object_uid, gid_t object_gid)
 Checks if access to an object is allowed for the current user. More...
 
bool rtems_filesystem_eval_path_check_access (rtems_filesystem_eval_path_context_t *ctx, int eval_flags, mode_t node_mode, uid_t node_uid, gid_t node_gid)
 

Detailed Description

RTEMS File System Permissions Check Support.