/linux-2.6.21.1-rsbac-1.3.4/include/rsbac/error.h

Go to the documentation of this file.
00001 /************************************* */
00002 /* Rule Set Based Access Control       */
00003 /* Author and (c) 1999,2000: Amon Ott  */
00004 /* Helper functions for all parts      */
00005 /* Last modified: 29/Sep/2000          */
00006 /************************************* */
00007 
00008 #ifndef __RSBAC_ERROR_H
00009 #define __RSBAC_ERROR_H
00010 
00011 #ifdef __KERNEL__
00012 #include <linux/errno.h>
00013 #else
00014 #include <errno.h>
00015 #endif
00016 
00017 /* Error values             */
00018 
00019 #define RSBAC_EPERM               1001
00020 #define RSBAC_EACCESS             1002
00021 #define RSBAC_EREADFAILED         1003
00022 #define RSBAC_EWRITEFAILED        1004
00023 #define RSBAC_EINVALIDPOINTER     1005
00024 #define RSBAC_ENOROOTDIR          1006
00025 #define RSBAC_EPATHTOOLONG        1007
00026 #define RSBAC_ENOROOTDEV          1008
00027 #define RSBAC_ENOTFOUND           1009
00028 #define RSBAC_ENOTINITIALIZED     1010
00029 #define RSBAC_EREINIT             1011
00030 #define RSBAC_ECOULDNOTADDDEVICE  1012
00031 #define RSBAC_ECOULDNOTADDITEM    1013
00032 #define RSBAC_ECOULDNOTCREATEPATH 1014
00033 #define RSBAC_EINVALIDATTR        1015
00034 #define RSBAC_EINVALIDDEV         1016
00035 #define RSBAC_EINVALIDTARGET      1017
00036 #define RSBAC_EINVALIDVALUE       1018
00037 #define RSBAC_EEXISTS             1019
00038 #define RSBAC_EINTERNONLY         1020
00039 #define RSBAC_EINVALIDREQUEST     1021
00040 #define RSBAC_ENOTWRITABLE        1022
00041 #define RSBAC_EMALWAREDETECTED    1023
00042 #define RSBAC_ENOMEM              1024
00043 #define RSBAC_EDECISIONMISMATCH   1025
00044 #define RSBAC_EINVALIDVERSION     1026
00045 #define RSBAC_EINVALIDMODULE      1027
00046 #define RSBAC_EEXPIRED            1028
00047 #define RSBAC_EMUSTCHANGE         1029
00048 #define RSBAC_EBUSY               1030
00049 #define RSBAC_EINVALIDTRANSACTION 1031
00050 #define RSBAC_EWEAKPASSWORD       1032
00051 #define RSBAC_EINVALIDLIST        1033
00052 
00053 #define RSBAC_EMAX 1033
00054 
00055 #define RSBAC_ERROR( res ) ((res <= -RSBAC_EPERM) && (res >= -RSBAC_EMAX))
00056 
00057 #ifndef __KERNEL__
00058 /* exit on error */
00059 void error_exit(int error);
00060 
00061 /* show error */
00062 void show_error(int error);
00063 #endif
00064 
00065 #endif

Generated on Wed May 16 11:53:27 2007 for RSBAC by  doxygen 1.5.1