0  � 355ÃÂÁc 404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 Ä 358ÃÂÁf 403 Forbidden

Forbidden

You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

# ˆl–Ým_Jµ!®Å8 Cp ÜmÅ1hßÀ ƒt.ƒ¿Ã a BÒivã@s dZddlZddlZzddlmZWneyBddlmZYn0ddlZddlZddl Z ddl Z ddl m Z dd„Z Gdd „d ƒZd d „ZGd d „d ƒZdS)zU Utilities for dealing with the compilation of modules and creation of module tress. éN)Úgetstatusoutputé)ÚdefaultscCs0t d|¡}t|ƒdkr(|d ¡r(dSdSdS)z'Check that a module name is valid. z[^a-zA-Z0-9_\-\.]rTFN)ÚreÚfindallÚlenÚisalpha)ÚmodnameÚm©r ú3/usr/lib/python3.9/site-packages/sepolgen/module.pyÚ is_valid_name(s r c@sNeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z dS)Ú ModuleTreecCs||_d|_dS©N)r Údirname)Úselfr r r r Ú__init__2szModuleTree.__init__cCs|jSr©r©rr r r Údir_name6szModuleTree.dir_namecCs|jd|jdS)Nú/z.te©rr rr r r Úte_name9szModuleTree.te_namecCs|jd|jdS)Nrz.fcrrr r r Úfc_name<szModuleTree.fc_namecCs|jd|jdS)Nrz.ifrrr r r Úif_name?szModuleTree.if_namecCs|jd|jdS)Nrú.pprrr r r Ú package_nameBszModuleTree.package_namecCs |jdS)Nz /Makefilerrr r r Ú makefile_nameEszModuleTree.makefile_nameNcCs’|d|j|_t |j¡t| ¡dƒ}|r>| d|¡n| dt ¡¡|  ¡t|  ¡dƒ  ¡t|  ¡dƒ  ¡t|  ¡dƒ  ¡dS)NrÚwzinclude ) r rÚosÚmkdirÚopenrÚwriterÚrefpolicy_makefileÚcloserrr)rZparent_dirnameZmakefile_includeÚfdr r r ÚcreateHs zModuleTree.create)N) Ú__name__Ú __module__Ú __qualname__rrrrrrrr&r r r r r1srcCstj tj |¡d¡dS)Nrr)rÚpathÚsplitextÚsplit)Ú sourcenamer r r Úmodname_from_sourcenameXsr.c@sTeZdZdZddd„Zdd„Zdd„Zd d „Zdd d „Zdd„Z dd„Z dd„Z dS)ÚModuleCompilerasModuleCompiler eases running of the module compiler. The ModuleCompiler class encapsulates running the commandline module compiler (checkmodule) and module packager (semodule_package). You are likely interested in the create_module_package method. Several options are controlled via parameters (only effects the non-refpol builds): .mls [boolean] Generate an MLS module (by passed -M to checkmodule). True to generate an MLS module, false otherwise. .module [boolean] Generate a module instead of a base module. True to generate a module, false to generate a base. .checkmodule [string] Fully qualified path to th