VULN_CHECK_I913V6 /iwpdZgdZdZdZdZeezZeeeedZedededed iZGd d ZGd d Z y)z This module provides knowledge object classes and permissions. It should be used to keep this knowledge from leaking into the more generic parts of the policy generation. ) socketfdprocessfilelnk_file fifo_filedbus capabilityunix_stream_socket)nrwbrrrrceZdZdZdZdZy)PermMapaA mapping between a permission and its information flow properties. PermMap represents the information flow properties of a single permission including the direction (read, write, etc.) and an abstract representation of the bandwidth of the flow (weight). c.||_||_||_yN)permdirweight)selfrrrs 9/usr/lib/python3.12/site-packages/sepolgen/objectmodel.py__init__zPermMap.__init__Ts  c\d|jt|j|jfzS)Nz')r dir_to_strrrrs r__repr__zPermMap.__repr__Ys08DII;Edhh;O;?;;rr;s r getdefaultzPermMappings.getdefaultsP Hc"4(B  H4!1!143F3FG G Hs*AAcbt}|D]#}|j||}||jz}%|Sr) FLOW_NONErBr)rr>permsrrr;s rgetdefault_directionz!PermMappings.getdefault_directions5Dd+B,C rcZd}|D]#}|j||}||jz }%|S)Nr )rBr)rr>rEtotalrr;s rgetdefault_distancez PermMappings.getdefault_distances6Dd+B RYY E rN) r!r"r#r$rr<r?rBrFrIr%rrr'r'^s% % "8' rr'N) r$implicitly_typed_objectsrD FLOW_READ FLOW_WRITEr,r5rrr'r%rrrMsl((H8    # iz T 3 Cc9s T HH"KKr