acl_types.h File Reference

#include <linux/types.h>

Go to the source code of this file.

Defines

#define RSBAC_ACL_TTL_KEEP   RSBAC_LIST_TTL_KEEP;
#define RSBAC_ACL_MAX_MAXNUM   1000000
#define RSBAC_ACL_GROUP_EVERYONE   0
#define RSBAC_ACL_ROLE_EVERYROLE   64
#define RSBAC_ACL_ROLE_EVERYROLE   64
#define RSBAC_ACL_OLD_SPECIAL_RIGHT_BASE   48
#define RSBAC_ACL_SPECIAL_RIGHT_BASE   56
#define RSBAC_ACL_RIGHTS_VECTOR(x)   ((rsbac_acl_rights_vector_t) 1 << (x))
#define RSBAC_ACL_SPECIAL_RIGHTS_VECTOR
#define RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR
#define RSBAC_NWS_REQUEST_VECTOR   RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR
#define RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR
#define RSBAC_NWA_REQUEST_VECTOR   RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR
#define RSBAC_ACL_ALL_RIGHTS_VECTOR   (RSBAC_ALL_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_FD_MASK   (RSBAC_FD_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_DEV_MASK   (RSBAC_DEV_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_SCD_MASK   (RSBAC_SCD_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_U_MASK   (RSBAC_USER_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_G_MASK   (RSBAC_GROUP_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_NETDEV_MASK   (RSBAC_NETDEV_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_NETTEMP_MASK   (RSBAC_NETTEMP_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_DEFAULT_NETOBJ_MASK   (RSBAC_NETOBJ_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_ACL_USER_RIGHTS_VECTOR
#define RSBAC_ACL_GROUP_RIGHTS_VECTOR   RSBAC_GROUP_REQUEST_VECTOR
#define RSBAC_ACL_GEN_RIGHTS_VECTOR   0
#define RSBAC_ACL_ACMAN_RIGHTS_VECTOR
#define RSBAC_ACL_SYSADM_RIGHTS_VECTOR   0
#define AST_min   32
#define RSBAC_ACL_GROUP_NAMELEN   16
#define RSBAC_ACL_GROUP_VERSION   2

Typedefs

typedef __u8 rsbac_acl_int_subject_type_t
typedef __u32 rsbac_acl_subject_id_t
typedef __u64 rsbac_acl_rights_vector_t
typedef __u32 rsbac_acl_group_id_t

Enumerations

enum  rsbac_acl_subject_type_t { ACLS_USER, ACLS_ROLE, ACLS_GROUP, ACLS_NONE }
enum  rsbac_acl_special_rights_t { ACLR_FORWARD = RSBAC_ACL_SPECIAL_RIGHT_BASE, ACLR_ACCESS_CONTROL, ACLR_SUPERVISOR, ACLR_NONE }
enum  rsbac_acl_scd_type_t { AST_auth_administration = AST_min, AST_none }
enum  rsbac_acl_group_type_t { ACLG_GLOBAL, ACLG_PRIVATE, ACLG_NONE }
enum  rsbac_acl_syscall_type_t {
  ACLC_set_acl_entry, ACLC_remove_acl_entry, ACLC_remove_acl, ACLC_add_to_acl_entry,
  ACLC_remove_from_acl_entry, ACLC_set_mask, ACLC_remove_user, ACLC_none
}
enum  rsbac_acl_group_syscall_type_t {
  ACLGS_add_group, ACLGS_change_group, ACLGS_remove_group, ACLGS_get_group_entry,
  ACLGS_list_groups, ACLGS_add_member, ACLGS_remove_member, ACLGS_get_user_groups,
  ACLGS_get_group_members, ACLGS_none
}


Define Documentation

#define AST_min   32
 

Definition at line 90 of file acl_types.h.

Referenced by get_acl_scd_type_name().

#define RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR
 

Value:

Definition at line 54 of file acl_types.h.

#define RSBAC_ACL_ACMAN_RIGHTS_VECTOR
 

Value:

Definition at line 77 of file acl_types.h.

#define RSBAC_ACL_ALL_RIGHTS_VECTOR   (RSBAC_ALL_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 59 of file acl_types.h.

#define RSBAC_ACL_DEFAULT_DEV_MASK   (RSBAC_DEV_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 62 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_FD_MASK   (RSBAC_FD_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 61 of file acl_types.h.

Referenced by acl_register_fd_lists(), rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), and rsbac_acl_set_acl_entry().

#define RSBAC_ACL_DEFAULT_G_MASK   (RSBAC_GROUP_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 65 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_NETDEV_MASK   (RSBAC_NETDEV_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 66 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_NETOBJ_MASK   (RSBAC_NETOBJ_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 68 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_NETTEMP_MASK   (RSBAC_NETTEMP_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 67 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_SCD_MASK   (RSBAC_SCD_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 63 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_DEFAULT_U_MASK   (RSBAC_USER_REQUEST_VECTOR | RSBAC_ACL_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 64 of file acl_types.h.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_remove_acl_entry(), rsbac_acl_set_acl_entry(), and rsbac_init_acl().

#define RSBAC_ACL_GEN_RIGHTS_VECTOR   0
 

Definition at line 75 of file acl_types.h.

#define RSBAC_ACL_GROUP_EVERYONE   0
 

Definition at line 24 of file acl_types.h.

Referenced by rsbac_acl_check_right(), rsbac_acl_check_super(), rsbac_acl_sys_get_rights(), sys_rsbac_acl(), sys_rsbac_acl_get_rights(), sys_rsbac_acl_get_rights_n(), and sys_rsbac_acl_n().

#define RSBAC_ACL_GROUP_NAMELEN   16
 

Definition at line 112 of file acl_types.h.

Referenced by rsbac_acl_add_group(), and rsbac_acl_change_group().

#define RSBAC_ACL_GROUP_RIGHTS_VECTOR   RSBAC_GROUP_REQUEST_VECTOR
 

Definition at line 73 of file acl_types.h.

#define RSBAC_ACL_GROUP_VERSION   2
 

Definition at line 114 of file acl_types.h.

Referenced by rsbac_init_acl().

#define RSBAC_ACL_MAX_MAXNUM   1000000
 

Definition at line 17 of file acl_types.h.

Referenced by rsbac_acl_sys_group(), and sys_rsbac_acl_get_tlist().

#define RSBAC_ACL_OLD_SPECIAL_RIGHT_BASE   48
 

Definition at line 30 of file acl_types.h.

Referenced by common_subconv(), dev_conv(), dev_old_conv(), fd_conv(), netdev_conv(), nettemp_conv(), nettemp_nt_conv(), and scd_conv().

#define RSBAC_ACL_RIGHTS_VECTOR  )     ((rsbac_acl_rights_vector_t) 1 << (x))
 

Definition at line 41 of file acl_types.h.

#define RSBAC_ACL_ROLE_EVERYROLE   64
 

Definition at line 28 of file acl_types.h.

#define RSBAC_ACL_ROLE_EVERYROLE   64
 

Definition at line 28 of file acl_types.h.

#define RSBAC_ACL_SPECIAL_RIGHT_BASE   56
 

Definition at line 31 of file acl_types.h.

Referenced by common_subconv(), dev_conv(), dev_old_conv(), fd_conv(), get_acl_special_right_name(), get_acl_special_right_nr(), netdev_conv(), nettemp_conv(), nettemp_nt_conv(), and scd_conv().

#define RSBAC_ACL_SPECIAL_RIGHTS_VECTOR
 

Value:

Definition at line 43 of file acl_types.h.

#define RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR
 

Value:

Definition at line 49 of file acl_types.h.

Referenced by rsbac_acl_sys_add_to_acl_entry(), rsbac_acl_sys_get_rights(), rsbac_acl_sys_remove_acl_entry(), rsbac_acl_sys_remove_from_acl_entry(), rsbac_acl_sys_set_acl_entry(), and rsbac_acl_sys_set_mask().

#define RSBAC_ACL_SYSADM_RIGHTS_VECTOR   0
 

Definition at line 83 of file acl_types.h.

#define RSBAC_ACL_TTL_KEEP   RSBAC_LIST_TTL_KEEP;
 

Definition at line 15 of file acl_types.h.

#define RSBAC_ACL_USER_RIGHTS_VECTOR
 

Value:

Definition at line 70 of file acl_types.h.

#define RSBAC_NWA_REQUEST_VECTOR   RSBAC_ACL_ACCESS_CONTROL_RIGHT_VECTOR
 

Definition at line 57 of file acl_types.h.

#define RSBAC_NWS_REQUEST_VECTOR   RSBAC_ACL_SUPERVISOR_RIGHT_VECTOR
 

Definition at line 52 of file acl_types.h.


Typedef Documentation

typedef __u32 rsbac_acl_group_id_t
 

Definition at line 110 of file acl_types.h.

typedef __u8 rsbac_acl_int_subject_type_t
 

Definition at line 21 of file acl_types.h.

typedef __u64 rsbac_acl_rights_vector_t
 

Definition at line 39 of file acl_types.h.

typedef __u32 rsbac_acl_subject_id_t
 

Definition at line 22 of file acl_types.h.


Enumeration Type Documentation

enum rsbac_acl_group_syscall_type_t
 

Enumeration values:
ACLGS_add_group 
ACLGS_change_group 
ACLGS_remove_group 
ACLGS_get_group_entry 
ACLGS_list_groups 
ACLGS_add_member 
ACLGS_remove_member 
ACLGS_get_user_groups 
ACLGS_get_group_members 
ACLGS_none 

Definition at line 159 of file acl_types.h.

enum rsbac_acl_group_type_t
 

Enumeration values:
ACLG_GLOBAL 
ACLG_PRIVATE 
ACLG_NONE 

Definition at line 108 of file acl_types.h.

enum rsbac_acl_scd_type_t
 

Enumeration values:
AST_auth_administration 
AST_none 

Definition at line 91 of file acl_types.h.

enum rsbac_acl_special_rights_t
 

Enumeration values:
ACLR_FORWARD 
ACLR_ACCESS_CONTROL 
ACLR_SUPERVISOR 
ACLR_NONE 

Definition at line 33 of file acl_types.h.

enum rsbac_acl_subject_type_t
 

Enumeration values:
ACLS_USER 
ACLS_ROLE 
ACLS_GROUP 
ACLS_NONE 

Definition at line 19 of file acl_types.h.

enum rsbac_acl_syscall_type_t
 

Enumeration values:
ACLC_set_acl_entry 
ACLC_remove_acl_entry 
ACLC_remove_acl 
ACLC_add_to_acl_entry 
ACLC_remove_from_acl_entry 
ACLC_set_mask 
ACLC_remove_user 
ACLC_none 

Definition at line 126 of file acl_types.h.


Generated on Fri Jun 17 09:45:27 2005 for RSBAC by  doxygen 1.4.2