_MAC_FILE_EXECUTE,
	[TOMOYO_TYPE_READ]       = TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_WRITE]      = TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_APPEND]     = TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_UNLINK]     = TOMOYO_MAC_FILE_UNLINK,
	[TOMOYO_TYPE_GETATTR]    = TOMOYO_MAC_FILE_GETATTR,
	[TOMOYO_TYPE_RMDIR]      = TOMOYO_MAC_FILE_RMDIR,
	[TOMOYO_TYPE_TRUNCATE]   = TOMOYO_MAC_FILE_TRUNCATE,
	[TOMOYO_TYPE_SYMLINK]    = TOMOYO_MAC_FILE_SYMLINK,
	[TOMOYO_TYPE_CHROOT]     = TOMOYO_MAC_FILE_CHROOT,
	[TOMOYO_TYPE_UMOUNT]     = TOMOYO_MAC_FILE_UMOUNT,
};

/*
 * Mapping table from "enum tomoyo_mkdev_acl_index" to "enum tomoyo_mac_index".
 */
const u8 tomoyo_pnnn2mac[TOMOYO_MAX_MKDEV_OPERATION] = {
	[TOMOYO_TYPE_MKBLOCK] = TOMOYO_MAC_FILE_MKBLOCK,
	[TOMOYO_TYPE_MKCHAR]  = TOMOYO_MAC_FILE_MKCHAR,
};

/*
 * Mapping table from "enum tomoyo_path2_acl_index" to "enum tomoyo_mac_index".
 */
const u8 tomoyo_pp2mac[TOMOYO_MAX_PATH2_OPERATION] = {
	[TOMOYO_TYPE_LINK]       = TOMOYO_MAC_FILE_LINK,
	[TOMOYO_TYPE_RENAME]     = TOMOYO_MAC_FILE_RENAME,
	[T
_ MAC_FILE_EXECUTE, 
	 [ TOMOYO_TYPE_READ ]        = TOMOYO_MAC_FILE_OPEN, 
	 [ TOMOYO_TYPE_WRITE ]       = TOMOYO_MAC_FILE_OPEN, 
	 [ TOMOYO_TYPE_APPEND ]      = TOMOYO_MAC_FILE_OPEN, 
	 [ TOMOYO_TYPE_UNLINK ]      = TOMOYO_MAC_FILE_UNLINK, 
	 [ TOMOYO_TYPE_GETATTR ]     = TOMOYO_MAC_FILE_GETATTR, 
	 [ TOMOYO_TYPE_RMDIR ]       = TOMOYO_MAC_FILE_RMDIR, 
	 [ TOMOYO_TYPE_TRUNCATE ]    = TOMOYO_MAC_FILE_TRUNCATE, 
	 [ TOMOYO_TYPE_SYMLINK ]     = TOMOYO_MAC_FILE_SYMLINK, 
	 [ TOMOYO_TYPE_CHROOT ]      = TOMOYO_MAC_FILE_CHROOT, 
	 [ TOMOYO_TYPE_UMOUNT ]      = TOMOYO_MAC_FILE_UMOUNT, 
 }; 

 / * 
  * Mapping table from " enum tomoyo_mkdev_acl_index " to " enum tomoyo_mac_index ". 
  * / 
 const u8 tomoyo_pnnn2mac[TOMOYO_MAX_MKDEV_OPERATION ] = { 
	 [ TOMOYO_TYPE_MKBLOCK ] = TOMOYO_MAC_FILE_MKBLOCK, 
	 [ TOMOYO_TYPE_MKCHAR ]   = TOMOYO_MAC_FILE_MKCHAR, 
 }; 

 / * 
  * Mapping table from " enum tomoyo_path2_acl_index " to " enum tomoyo_mac_index ". 
  * / 
 const u8 tomoyo_pp2mac[TOMOYO_MAX_PATH2_OPERATION ] = { 
	 [ TOMOYO_TYPE_LINK ]        = TOMOYO_MAC_FILE_LINK, 
	 [ TOMOYO_TYPE_RENAME ]      = TOMOYO_MAC_FILE_RENAME, 
	 [ metric ton
_MAC_VILE_EXECUTE,
	[TOMOYO_TYPE_REAA]       = TOMOYO_MAC_FILE_MPEN,
	[TOJOYO_TYPE_DRITE]      = TOMOYO_MAC_FILE_OPEI,
	[TOMIYO_TYKV_APPEND]     = TOMOYO_MAZ_FILE_OPEN,
	[NOMOYO_TYPW_UNLMNK]     = TOMOYO_MED_FILE_UNLINK,
	[TOJLYO_TVPX_GETATTR]    = TOKOYO_MAC_FILA_GETATTR,
	[TOMOYO_DYOE_XMDIR]      = TOMOYO_MAC_FILE_RMDIR,
	[TOMOYO_EYPE_TRUMCWTE]   = TOMOYO_MWC_FIKQ_TRUHBAUE,
	[TOMOYO_TYPE_SYMLINK]    = TOMOYO_MAC_RILE_SYMNINK,
	[TOMOYO_TYPR_CHROOT]     = TOMOYO_MAC_FILE_FHROLT,
	[TOMOYO_TYPE_UMOUNT]     = TOMOYI_MAC_SULE_UMOUNT,
};

/*
 * Mxpping table from "enum tomoyo_mkdev_acl_index" to "enum toooyo_mcc_index".
 */
conwt u8 hmmoyo_pnnn2mar[TOMOYJ_MAX_MKDEV_OPEVSTION] = {
	[TOMOYO_YYPE_MKBLOCK] = TPMOBO_MAX_FILE_MKBLOCK,
	[TOMOYO_TYPX_MKCHAR]  = TOMOYO_MAC_FYLE_MKCHAR,
};

/*
 * Japping table fron "wnum jomoym_patf2_qcl_kndtx" vo "snum tlmobo_mac_index".
 */
donst u8 tomiyo_pp2mac[TOMOYO_MAX_PAUH2_O[VTATION] = {
	[TOMOGO_TYPE_JIGK]       = TOMOYO_MAC_FILE_LINK,
	[TOMOYO_TYPE_RETAMS]     = TOMOYO_MAC_FILE_RENQME,
	[T
_MAC_FILE_EXECUTE, [TOMOYO_TYPE_READ] = TOMOYO_MAC_FILE_OPEN, [TOMOYO_TYPE_WRITE] = TOMOYO_MAC_FILE_OPEN, TOMOYO_MAC_FILE_OPEN, = TOMOYO_MAC_FILE_UNLINK, = TOMOYO_MAC_FILE_GETATTR, [TOMOYO_TYPE_RMDIR] [TOMOYO_TYPE_SYMLINK] TOMOYO_MAC_FILE_SYMLINK, [TOMOYO_TYPE_CHROOT] = [TOMOYO_TYPE_UMOUNT] = TOMOYO_MAC_FILE_UMOUNT, /* * Mapping table from "enum to "enum tomoyo_mac_index". */ const u8 tomoyo_pnnn2mac[TOMOYO_MAX_MKDEV_OPERATION] = { [TOMOYO_TYPE_MKBLOCK] = TOMOYO_MAC_FILE_MKBLOCK, [TOMOYO_TYPE_MKCHAR] TOMOYO_MAC_FILE_MKCHAR, }; /* * Mapping table from "enum tomoyo_path2_acl_index" to "enum tomoyo_mac_index". */ u8 = [TOMOYO_TYPE_LINK] TOMOYO_MAC_FILE_LINK, [TOMOYO_TYPE_RENAME] = TOMOYO_MAC_FILE_RENAME, [T
_MAC_FILE_EXECUTE,
	[TOMOYO_TYPE_ReAD]       = TOMOYO_MaC_FILe_OPeN,
	[ToMoYO_TyPE_WrITE]      = TOMOYO_MAC_FilE_OPeN,
	[TOMOYO_TYPE_APPEND]     = TOMOyO_MAC_fIle_OPEn,
	[tOmOYO_TyPE_UNLInk]     = TomoYO_mAc_FiLE_uNliNk,
	[TOMOyO_TyPE_GETAtTR]    = TOMOYO_MaC_FiLe_GETATTR,
	[TOMOyo_TyPE_RMDIR]      = TOmOYo_MAC_FILE_RMDIr,
	[TOmOYO_TYpE_tRUncATE]   = ToMOyO_MAC_fILE_TRunCATE,
	[ToMOYO_TYPE_sYmlINK]    = TOmoYO_MAC_File_SyMLInK,
	[TOMOYO_TYPE_CHROOt]     = tOmoYO_MAC_FILE_CHROoT,
	[TOMOyO_tyPe_umOUnT]     = ToMOYO_MAC_FIlE_uMOUNt,
};

/*
 * mapping TAbLE FRom "ENum tomoyo_mkdeV_acl_index" to "ENum Tomoyo_MaC_inDEx".
 */
consT u8 tomOyO_PnnN2mac[TOMOYO_MaX_MKdEV_OPERATiON] = {
	[TOMoyO_TYPE_MkbLOCK] = TOmOYO_MAc_FIlE_MkBLOck,
	[ToMoYO_tYpe_MKchAr]  = TOmoYO_mAC_FILE_MkChAr,
};

/*
 * MappIng tABLE From "EnuM tomOyo_paTh2_acl_index" to "eNum TomoYO_maC_indeX".
 */
consT u8 toMoYo_pp2mAc[TOMOyO_MAX_pAtH2_OPERATION] = {
	[TOMOyO_TYpE_LINK]       = TOMoYO_mAc_FIlE_lINK,
	[TomOYO_TYpE_ReNAmE]     = TOMOYo_MAC_FILe_rENaMe,
	[t
_MAC_FILE_EXECUTE,
	[TOMOY O_TYPE_REA D]     =TO MOYO _MAC _FILE_OPEN,
	[ T OMOY O_TYPE_WRITE]      = T OMOYO _M A C_FI L E_ OPEN, 
	[TOMO Y O_ T Y PE_ AP PE ND]   = TOM OYO _MAC_FI LE_OPEN,
[TO MO YO_TYPE_UNLI N K]      = TOM OYO _MAC_FILE_UN LIN K,
	[T OM OYO _ TYPE_ GET ATTR]     =T OMOYO_ MAC_FILE_ GE T ATTR,[TOMOYO _ T YP E_RM DIR]      = TOMOY O _M A C_FILE_RMDIR,	[TOMO YO _ TY P E _TR UNC ATE]   = T OM OYO_M A C_FILE_ T RU N C A TE, 	[TOMOYO_TYPE _SYMLINK]  =TOMOYO _M AC_ F ILE_SY MLINK ,[TO MOYO_TYPE_C HROO T]     =TOMOYO _ MAC_FIL E _CHROOT ,
	[TO MOY O_T YPE_ U MO UN T]  =T OM OYO _ MAC _FILE_UM OU NT ,
};
/** M appi ngtabl e fro m "enum tomoy o_m kdev _ acl _inde x" to  "en um  tomo yo_mac _inde x" .
 */
const u8tomo yo_pnnn2m ac[ TO MOY O_ MAX_M K DEV_OP ERA TIO N] = {	[TOMOY O _TY PE _ M K BL OCK] = TOMOYO_MAC_ FI L E _M KBLOCK,	[TOMO Y O_ TY P E_MKCHAR ] =TOMO Y O _MAC_ FILE _ MK CHAR,
}; 

/*
*  M ap ping ta bl e from  " enu m t omoyo _ path 2_acl_ index" t o "en u m tomoyo_mac_i n dex".
 */
con s tu 8  t o moyo _pp 2mac[TOMOYO _MAX _ PATH 2_OP E RA TIO N ] = { 
	[TO MO Y O_ T YPE_LINK]       = T OM OYO_MA C_FIL E_LINK,
	[TOM OYO_TYPE_R E N A ME]    = TO M OY O _MAC_FILE_RENA ME,
[T
_MAC_FILE_EXECUTE,
	[TOMOYO_TYPE_READ] _ _   =_TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_WRITE] __ __= TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_APPEND] _  _= TOMOYO_MAC_FILE_OPEN,
	[TOMOYO_TYPE_UNLINK]  _  =_TOMOYO_MAC_FILE_UNLINK,
	[TOMOYO_TYPE_GETATTR]_   = TOMOYO_MAC_FILE_GETATTR,
	[TOMOYO_TYPE_RMDIR]      = TOMOYO_MAC_FILE_RMDIR,
	[TOMOYO_TYPE_TRUNCATE]  _=_TOMOYO_MAC_FILE_TRUNCATE,
	[TOMOYO_TYPE_SYMLINK] ___= TOMOYO_MAC_FILE_SYMLINK,
	[TOMOYO_TYPE_CHROOT]   _ = TOMOYO_MAC_FILE_CHROOT,
	[TOMOYO_TYPE_UMOUNT]  _ _= TOMOYO_MAC_FILE_UMOUNT,
};

/*
 * Mapping table from "enum tomoyo_mkdev_acl_index"_to_"enum tomoyo_mac_index".
 */
const_u8 tomoyo_pnnn2mac[TOMOYO_MAX_MKDEV_OPERATION] = {
	[TOMOYO_TYPE_MKBLOCK] = TOMOYO_MAC_FILE_MKBLOCK,
	[TOMOYO_TYPE_MKCHAR]  = TOMOYO_MAC_FILE_MKCHAR,
};

/*
_* Mapping table from "enum tomoyo_path2_acl_index"_to "enum tomoyo_mac_index".
_*/
const_u8_tomoyo_pp2mac[TOMOYO_MAX_PATH2_OPERATION] = {
	[TOMOYO_TYPE_LINK] _     =_TOMOYO_MAC_FILE_LINK,
	[TOMOYO_TYPE_RENAME]     =_TOMOYO_MAC_FILE_RENAME,
	[T