͓MdZddlZddlmZdZdZdZdZd Zd Z d e d e d e fdZ d e d e d dfdZ d e d e d dfdZd e d ee fdZdS)a Admin-level configuration for website isolation. Stores path constants for global feature flags and per-user mode directories, and provides helpers that implement the CageFS-style per-user directory layout: // where *prefix* is ``uid % 100`` zero-padded to two digits and each user entry is an empty marker file. Directory permissions: ``0o751`` (``drwxr-x--x``). File permissions: ``0o644`` (``-rw-r--r--``). N)get_user_prefixz/opt/cloudlinux/flags/available-flags.d/website-isolation.flagz'/etc/cagefs/site-isolation.users.deniedz(/etc/cagefs/site-isolation.users.allowediidirpathusernamereturnct|}tjtj|||S)z>"',,wAA B BBcTt|}tj||}tj|t dtj||}t |dtj|tdS)z>"',,{H"E"EFF(IIh''' (  ( w '     LsCCC%$C%)__doc__r fsrWEBSITE_ISOLATION_MARKER"WEBSITE_ISOLATION_AVAILABLE_MARKERISOLATION_DENIED_DIRISOLATION_ALLOWED_DIRrrstrboolrrr#r%r-rrr7s  YD#AB   CCCCCCC "S"C"D"""" #      ( s s3x      r