/usr/include/rsbac/um_types.h is in librsbac-dev 1.4.0-repack-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | /**************************************/
/* Rule Set Based Access Control */
/* Author and (c) 1999-2007: Amon Ott */
/* User Management Data structures */
/* Last modified: 16/Sep/2007 */
/**************************************/
#ifndef __RSBAC_UM_TYPES_H
#define __RSBAC_UM_TYPES_H
//#include <rsbac/types.h>
#if 0
#ifdef __KERNEL__ /* only include in kernel code */
#include <rsbac/debug.h>
#include <rsbac/lists.h>
#endif /* __KERNEL__ */
#endif
#define RSBAC_UM_MAX_MAXNUM 1000000
#define RSBAC_UM_USER_LIST_NAME "um_user"
#define RSBAC_UM_GROUP_LIST_NAME "um_grp"
#define RSBAC_UM_USER_PWHISTORY_LIST_NAME "um_pwh"
#define RSBAC_UM_OLD_USER_LIST_NAME "um_u."
#define RSBAC_UM_OLD_GROUP_LIST_NAME "um_g."
#define RSBAC_UM_OLD_USER_PWHISTORY_LIST_NAME "um_pwh."
#define RSBAC_UM_NR_USER_LISTS 8
#define RSBAC_UM_NR_GROUP_LISTS 8
#define RSBAC_UM_NR_USER_PWHISTORY_LISTS 8
#define RSBAC_UM_USER_LIST_VERSION 2
#define RSBAC_UM_GROUP_LIST_VERSION 2
#define RSBAC_UM_USER_PWHISTORY_LIST_VERSION 2
#define RSBAC_UM_USER_OLD_LIST_VERSION 1
#define RSBAC_UM_GROUP_OLD_LIST_VERSION 1
#define RSBAC_UM_USER_PWHISTORY_OLD_LIST_VERSION 1
#define RSBAC_UM_USER_LIST_KEY 6363636
#define RSBAC_UM_GROUP_LIST_KEY 9847298
#define RSBAC_UM_USER_PWHISTORY_LIST_KEY 8854687
#define RSBAC_UM_NAME_LEN 65
#define RSBAC_UM_OLD_NAME_LEN 16
#define RSBAC_UM_PASS_LEN 24
#define RSBAC_UM_FULLNAME_LEN 65
#define RSBAC_UM_OLD_FULLNAME_LEN 30
#define RSBAC_UM_HOMEDIR_LEN 101
#define RSBAC_UM_OLD_HOMEDIR_LEN 50
#define RSBAC_UM_SHELL_LEN 45
#define RSBAC_UM_OLD_SHELL_LEN 24
typedef __s32 rsbac_um_days_t;
enum rsbac_um_mod_t { UM_name, UM_pass, UM_fullname, UM_homedir, UM_shell,
UM_group, UM_lastchange, UM_minchange, UM_maxchange,
UM_warnchange, UM_inactive, UM_expire, UM_ttl,
UM_cryptpass, UM_none
};
union rsbac_um_mod_data_t {
char string[RSBAC_MAXNAMELEN];
rsbac_gid_num_t group;
rsbac_um_days_t days;
rsbac_time_t ttl;
};
struct rsbac_um_user_entry_t {
rsbac_gid_num_t group;
rsbac_um_days_t lastchange;
rsbac_um_days_t minchange;
rsbac_um_days_t maxchange;
rsbac_um_days_t warnchange;
rsbac_um_days_t inactive;
rsbac_um_days_t expire;
char name[RSBAC_UM_NAME_LEN];
char pass[RSBAC_UM_PASS_LEN];
char fullname[RSBAC_UM_FULLNAME_LEN];
char homedir[RSBAC_UM_HOMEDIR_LEN];
char shell[RSBAC_UM_SHELL_LEN];
};
#define DEFAULT_UM_U_ENTRY \
{ \
65534, /* group */ \
100000, /* lastchange */ \
0, /* minchange */ \
365, /* maxchange */ \
10, /* warnchange */ \
3, /* inactive */ \
100000, /* expire */ \
"", /* name */ \
"", /* pass */ \
"", /* fullname */ \
"/home", /* homedir */ \
"/bin/sh" /* shell */ \
}
struct rsbac_um_group_entry_t {
char name[RSBAC_UM_NAME_LEN];
char pass[RSBAC_UM_PASS_LEN];
};
#define DEFAULT_UM_G_ENTRY \
{ \
"", /* name */ \
"" /* pass */ \
}
#endif
|