rc_types.h File Reference

#include <linux/types.h>

Go to the source code of this file.

Defines

#define RSBAC_RC_GENERAL_ROLE   0
#define RSBAC_RC_ROLE_ADMIN_ROLE   1
#define RSBAC_RC_SYSTEM_ADMIN_ROLE   2
#define RSBAC_RC_AUDITOR_ROLE   3
#define RSBAC_RC_BOOT_ROLE   999999
#define RSBAC_RC_GENERAL_TYPE   0
#define RSBAC_RC_SEC_TYPE   1
#define RSBAC_RC_SYS_TYPE   2
#define RSBAC_RC_NAME_LEN   16
#define RSBAC_RC_ALL_REQUESTS   ((rsbac_rc_request_vector_t) -1)
#define RSBAC_RC_OLD_SPECIAL_RIGHT_BASE   48
#define RSBAC_RC_SPECIAL_RIGHT_BASE   56
#define RSBAC_RC_RIGHTS_VECTOR(x)   ((rsbac_rc_rights_vector_t) 1 << (x))
#define RSBAC_RC_ROLE_VECTOR(x)   ((rsbac_rc_role_vector_t) 1 << (x))
#define RSBAC_RC_TYPE_VECTOR(x)   ((rsbac_rc_type_vector_t) 1 << (x))
#define RSBAC_RC_SPECIAL_RIGHTS_VECTOR
#define RSBAC_RC_SUPERVISOR_RIGHT_VECTOR
#define RSBAC_RC_ALL_RIGHTS_VECTOR   (RSBAC_ALL_REQUEST_VECTOR | RSBAC_RC_SPECIAL_RIGHTS_VECTOR)
#define RSBAC_RC_PROCESS_RIGHTS_VECTOR
#define RSBAC_RC_DEFAULT_RIGHTS_VECTOR   0
#define RSBAC_RC_GEN_RIGHTS_VECTOR   RSBAC_RC_DEFAULT_RIGHTS_VECTOR
#define RST_min   32
#define RSBAC_RC_GENERAL_COMP_SCD
#define RSBAC_RC_ROLEADM_COMP_SCD
#define RSBAC_RC_SYSADM_COMP_SCD
#define RSBAC_RC_AUDITOR_COMP_SCD
#define RC_type_inherit_process   ((rsbac_rc_type_id_t) -1)
#define RC_type_inherit_parent   ((rsbac_rc_type_id_t) -2)
#define RC_type_no_create   ((rsbac_rc_type_id_t) -3)
#define RC_type_no_execute   ((rsbac_rc_type_id_t) -4)
#define RC_type_use_new_role_def_create   ((rsbac_rc_type_id_t) -5)
#define RC_type_no_chown   ((rsbac_rc_type_id_t) -6)
#define RC_type_min_special   ((rsbac_rc_type_id_t) -6)
#define RC_type_max_value   ((rsbac_rc_type_id_t) -32)
#define RC_role_inherit_user   ((rsbac_rc_role_id_t) -1)
#define RC_role_inherit_process   ((rsbac_rc_role_id_t) -2)
#define RC_role_inherit_parent   ((rsbac_rc_role_id_t) -3)
#define RC_role_inherit_up_mixed   ((rsbac_rc_role_id_t) -4)
#define RC_role_use_force_role   ((rsbac_rc_role_id_t) -5)
#define RC_role_min_special   ((rsbac_rc_role_id_t) -5)
#define RC_role_max_value   ((rsbac_rc_role_id_t) -32)
#define RC_default_force_role   RC_role_inherit_parent
#define RC_default_root_dir_force_role   RC_role_inherit_up_mixed
#define RC_default_init_force_role   RC_role_inherit_user
#define RC_default_initial_role   RC_role_inherit_parent
#define RC_default_root_dir_initial_role   RC_role_use_force_role

Typedefs

typedef __u64 rsbac_rc_rights_vector_t
typedef __u64 rsbac_rc_role_vector_t
typedef __u32 rsbac_rc_role_id_t
typedef __u32 rsbac_rc_type_id_t
typedef rsbac_request_vector_t rsbac_rc_request_vector_t

Enumerations

enum  rsbac_rc_special_rights_t {
  RCR_ADMIN = RSBAC_RC_SPECIAL_RIGHT_BASE, RCR_ASSIGN, RCR_ACCESS_CONTROL, RCR_SUPERVISOR,
  RCR_MODIFY_AUTH, RCR_NONE
}
enum  rsbac_rc_admin_type_t { RC_no_admin, RC_role_admin, RC_system_admin, RC_none }
enum  rsbac_rc_scd_type_t { RST_auth_administration = RST_min, RST_none }
enum  rsbac_rc_target_t { RT_ROLE, RT_TYPE, RT_NONE }
enum  rsbac_rc_item_t {
  RI_role_comp, RI_admin_roles, RI_assign_roles, RI_type_comp_fd,
  RI_type_comp_dev, RI_type_comp_user, RI_type_comp_process, RI_type_comp_ipc,
  RI_type_comp_scd, RI_type_comp_group, RI_type_comp_netdev, RI_type_comp_nettemp,
  RI_type_comp_netobj, RI_admin_type, RI_name, RI_def_fd_create_type,
  RI_def_fd_ind_create_type, RI_def_user_create_type, RI_def_process_create_type, RI_def_process_chown_type,
  RI_def_process_execute_type, RI_def_ipc_create_type, RI_def_group_create_type, RI_boot_role,
  RI_type_fd_name, RI_type_dev_name, RI_type_ipc_name, RI_type_user_name,
  RI_type_process_name, RI_type_group_name, RI_type_netdev_name, RI_type_nettemp_name,
  RI_type_netobj_name, RI_type_fd_need_secdel, RI_type_scd_name, RI_remove_role,
  RI_def_fd_ind_create_type_remove, RI_type_fd_remove, RI_type_dev_remove, RI_type_ipc_remove,
  RI_type_user_remove, RI_type_process_remove, RI_type_group_remove, RI_type_netdev_remove,
  RI_type_nettemp_remove, RI_type_netobj_remove, RI_none
}


Define Documentation

#define RC_default_force_role   RC_role_inherit_parent
 

Definition at line 280 of file rc_types.h.

#define RC_default_init_force_role   RC_role_inherit_user
 

Definition at line 282 of file rc_types.h.

#define RC_default_initial_role   RC_role_inherit_parent
 

Definition at line 283 of file rc_types.h.

#define RC_default_root_dir_force_role   RC_role_inherit_up_mixed
 

Definition at line 281 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_default_root_dir_initial_role   RC_role_use_force_role
 

Definition at line 284 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_role_inherit_parent   ((rsbac_rc_role_id_t) -3)
 

Definition at line 274 of file rc_types.h.

Referenced by get_attr_fd(), and rsbac_adf_set_attr_rc().

#define RC_role_inherit_process   ((rsbac_rc_role_id_t) -2)
 

Definition at line 273 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_role_inherit_up_mixed   ((rsbac_rc_role_id_t) -4)
 

Definition at line 275 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_role_inherit_user   ((rsbac_rc_role_id_t) -1)
 

Definition at line 272 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), rsbac_adf_set_attr_rc(), and rsbac_rc_test_assign_roles().

#define RC_role_max_value   ((rsbac_rc_role_id_t) -32)
 

Definition at line 278 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc(), rsbac_check_acl(), rsbac_rc_check_comp(), rsbac_rc_copy_role(), rsbac_rc_get_item(), rsbac_rc_set_item(), rsbac_rc_test_admin_roles(), rsbac_rc_test_assign_roles(), sys_rsbac_acl(), sys_rsbac_acl_get_rights(), sys_rsbac_acl_get_rights_n(), sys_rsbac_acl_n(), sys_rsbac_rc_change_role(), and sys_rsbac_rc_copy_role().

#define RC_role_min_special   ((rsbac_rc_role_id_t) -5)
 

Definition at line 277 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_role_use_force_role   ((rsbac_rc_role_id_t) -5)
 

Definition at line 276 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc().

#define RC_type_inherit_parent   ((rsbac_rc_type_id_t) -2)
 

Definition at line 264 of file rc_types.h.

Referenced by get_attr_fd(), rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RC_type_inherit_process   ((rsbac_rc_type_id_t) -1)
 

Definition at line 263 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RC_type_max_value   ((rsbac_rc_type_id_t) -32)
 

Definition at line 270 of file rc_types.h.

Referenced by rsbac_rc_check_type_comp(), rsbac_rc_copy_type(), rsbac_rc_get_item(), rsbac_rc_set_item(), and sys_rsbac_rc_copy_type().

#define RC_type_min_special   ((rsbac_rc_type_id_t) -6)
 

Definition at line 269 of file rc_types.h.

Referenced by rsbac_rc_set_item().

#define RC_type_no_chown   ((rsbac_rc_type_id_t) -6)
 

Definition at line 268 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RC_type_no_create   ((rsbac_rc_type_id_t) -3)
 

Definition at line 265 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RC_type_no_execute   ((rsbac_rc_type_id_t) -4)
 

Definition at line 266 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RC_type_use_new_role_def_create   ((rsbac_rc_type_id_t) -5)
 

Definition at line 267 of file rc_types.h.

Referenced by rsbac_adf_request_rc(), and rsbac_adf_set_attr_rc().

#define RSBAC_RC_ALL_REQUESTS   ((rsbac_rc_request_vector_t) -1)
 

Definition at line 27 of file rc_types.h.

#define RSBAC_RC_ALL_RIGHTS_VECTOR   (RSBAC_ALL_REQUEST_VECTOR | RSBAC_RC_SPECIAL_RIGHTS_VECTOR)
 

Definition at line 61 of file rc_types.h.

#define RSBAC_RC_AUDITOR_COMP_SCD
 

Value:

{ \
                          0, \
                          0, \
                          0, \
                          0, \
                          0, \
         /* ST_rlimit */  RSBAC_REQUEST_VECTOR(GET_STATUS_DATA) | RSBAC_REQUEST_VECTOR(MODIFY_SYSTEM_DATA), \
         /* ST_swap */              0, \
         /* ST_syslog */            0, \
         /* ST_rsbac */             0, \
         /* ST_rsbac_log */         ((rsbac_request_vector_t) 1 << R_GET_STATUS_DATA) | ((rsbac_request_vector_t) 1 << R_MODIFY_SYSTEM_DATA), \
         /* ST_other */             ( \
                                       ((rsbac_request_vector_t) 1 << R_MAP_EXEC) \
                                    ), \
         /* ST_kmem */              0, \
         /* ST_network */           ((rsbac_request_vector_t) 1 << R_GET_STATUS_DATA), \
         /* ST_firewall */          0, \
         /* ST_priority */          0, \
         /* 15 = ST_none */         0 \
          }

Definition at line 240 of file rc_types.h.

#define RSBAC_RC_AUDITOR_ROLE   3
 

Definition at line 19 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_BOOT_ROLE   999999
 

Definition at line 20 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_DEFAULT_RIGHTS_VECTOR   0
 

Definition at line 70 of file rc_types.h.

Referenced by rsbac_init_rc(), and rsbac_rc_get_item().

#define RSBAC_RC_GEN_RIGHTS_VECTOR   RSBAC_RC_DEFAULT_RIGHTS_VECTOR
 

Definition at line 72 of file rc_types.h.

#define RSBAC_RC_GENERAL_COMP_SCD
 

Value:

{ \
                          0, \
                          0, \
                          0, \
                          0, \
                          0, \
         /* ST_rlimit */ RSBAC_REQUEST_VECTOR(GET_STATUS_DATA) | RSBAC_REQUEST_VECTOR(MODIFY_SYSTEM_DATA), \
         /* ST_swap */              0, \
         /* ST_syslog */            0, \
         /* ST_rsbac */             0, \
         /* ST_rsbac_log */         0, \
         /* ST_other */             ( \
                                       ((rsbac_request_vector_t) 1 << R_MAP_EXEC) \
                                    ), \
         /* ST_kmem */              0, \
         /* ST_network */           ((rsbac_request_vector_t) 1 << R_GET_STATUS_DATA), \
         /* ST_firewall */          0, \
         /* ST_priority */          0, \
         /* 15 = ST_none */         0 \
          }

Definition at line 109 of file rc_types.h.

#define RSBAC_RC_GENERAL_ROLE   0
 

Definition at line 16 of file rc_types.h.

Referenced by rsbac_adf_set_attr_rc(), rsbac_init(), and rsbac_init_rc().

#define RSBAC_RC_GENERAL_TYPE   0
 

Definition at line 21 of file rc_types.h.

Referenced by get_attr_dev(), get_attr_ipc(), register_dev_lists(), register_ipc_lists(), rsbac_adf_request_rc(), rsbac_adf_set_attr_rc(), and rsbac_init_rc().

#define RSBAC_RC_NAME_LEN   16
 

Definition at line 26 of file rc_types.h.

Referenced by rsbac_init_rc(), rsbac_rc_copy_type(), rsbac_rc_get_item(), and rsbac_rc_set_item().

#define RSBAC_RC_OLD_SPECIAL_RIGHT_BASE   48
 

Definition at line 29 of file rc_types.h.

#define RSBAC_RC_PROCESS_RIGHTS_VECTOR
 

Value:

Definition at line 63 of file rc_types.h.

#define RSBAC_RC_RIGHTS_VECTOR  )     ((rsbac_rc_rights_vector_t) 1 << (x))
 

Definition at line 45 of file rc_types.h.

Referenced by rsbac_init_rc(), rsbac_rc_check_comp(), and rsbac_rc_sys_set_item().

#define RSBAC_RC_ROLE_ADMIN_ROLE   1
 

Definition at line 17 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_ROLE_VECTOR  )     ((rsbac_rc_role_vector_t) 1 << (x))
 

Definition at line 46 of file rc_types.h.

#define RSBAC_RC_ROLEADM_COMP_SCD
 

Definition at line 131 of file rc_types.h.

#define RSBAC_RC_SEC_TYPE   1
 

Definition at line 22 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_SPECIAL_RIGHT_BASE   56
 

Definition at line 30 of file rc_types.h.

Referenced by get_rc_special_right_name(), and get_rc_special_right_nr().

#define RSBAC_RC_SPECIAL_RIGHTS_VECTOR
 

Value:

Definition at line 49 of file rc_types.h.

Referenced by rsbac_init_rc(), and rsbac_rc_sys_set_item().

#define RSBAC_RC_SUPERVISOR_RIGHT_VECTOR
 

Value:

Definition at line 57 of file rc_types.h.

#define RSBAC_RC_SYS_TYPE   2
 

Definition at line 23 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_SYSADM_COMP_SCD
 

Definition at line 174 of file rc_types.h.

#define RSBAC_RC_SYSTEM_ADMIN_ROLE   2
 

Definition at line 18 of file rc_types.h.

Referenced by rsbac_init_rc().

#define RSBAC_RC_TYPE_VECTOR  )     ((rsbac_rc_type_vector_t) 1 << (x))
 

Definition at line 47 of file rc_types.h.

#define RST_min   32
 

Definition at line 84 of file rc_types.h.

Referenced by get_rc_scd_type_name(), get_rc_scd_type_nr(), and rsbac_rc_set_item().


Typedef Documentation

typedef rsbac_request_vector_t rsbac_rc_request_vector_t
 

Definition at line 76 of file rc_types.h.

typedef __u64 rsbac_rc_rights_vector_t
 

Definition at line 40 of file rc_types.h.

typedef __u32 rsbac_rc_role_id_t
 

Definition at line 74 of file rc_types.h.

typedef __u64 rsbac_rc_role_vector_t
 

Definition at line 43 of file rc_types.h.

typedef __u32 rsbac_rc_type_id_t
 

Definition at line 75 of file rc_types.h.


Enumeration Type Documentation

enum rsbac_rc_admin_type_t
 

Enumeration values:
RC_no_admin 
RC_role_admin 
RC_system_admin 
RC_none 

Definition at line 78 of file rc_types.h.

enum rsbac_rc_item_t
 

Enumeration values:
RI_role_comp 
RI_admin_roles 
RI_assign_roles 
RI_type_comp_fd 
RI_type_comp_dev 
RI_type_comp_user 
RI_type_comp_process 
RI_type_comp_ipc 
RI_type_comp_scd 
RI_type_comp_group 
RI_type_comp_netdev 
RI_type_comp_nettemp 
RI_type_comp_netobj 
RI_admin_type 
RI_name 
RI_def_fd_create_type 
RI_def_fd_ind_create_type 
RI_def_user_create_type 
RI_def_process_create_type 
RI_def_process_chown_type 
RI_def_process_execute_type 
RI_def_ipc_create_type 
RI_def_group_create_type 
RI_boot_role 
RI_type_fd_name 
RI_type_dev_name 
RI_type_ipc_name 
RI_type_user_name 
RI_type_process_name 
RI_type_group_name 
RI_type_netdev_name 
RI_type_nettemp_name 
RI_type_netobj_name 
RI_type_fd_need_secdel 
RI_type_scd_name 
RI_remove_role 
RI_def_fd_ind_create_type_remove 
RI_type_fd_remove 
RI_type_dev_remove 
RI_type_ipc_remove 
RI_type_user_remove 
RI_type_process_remove 
RI_type_group_remove 
RI_type_netdev_remove 
RI_type_nettemp_remove 
RI_type_netobj_remove 
RI_none 

Definition at line 298 of file rc_types.h.

enum rsbac_rc_scd_type_t
 

Enumeration values:
RST_auth_administration 
RST_none 

Definition at line 85 of file rc_types.h.

enum rsbac_rc_special_rights_t
 

Enumeration values:
RCR_ADMIN 
RCR_ASSIGN 
RCR_ACCESS_CONTROL 
RCR_SUPERVISOR 
RCR_MODIFY_AUTH 
RCR_NONE 

Definition at line 32 of file rc_types.h.

enum rsbac_rc_target_t
 

Enumeration values:
RT_ROLE 
RT_TYPE 
RT_NONE 

Definition at line 290 of file rc_types.h.


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