Ë
    §!f¥  ã                   ó`   — d Z ddlZddlZ ej                  «        G d„ d«      «       Zdefd„Zy)z"Functions around users and groups.é    Nc                   óB   — e Zd ZU dZeed<   eed<   defd„Zed„ «       Z	y)ÚUserGroupIDzPair of user and group ID.ÚuidÚgidÚreturnc                 óB   — | j                   dk(  xs | j                  dk(  S )z&Check if the user or group ID is root.r   )r   r   )Úselfs    ú3/usr/lib/python3/dist-packages/apport/user_group.pyÚis_rootzUserGroupID.is_root   s   € à�x‰x˜1‰}Ò- §¡¨A¡Ð-ó    c                 ó    — |j                  d«      }t        |t        «      sJ ‚|j                  d«      }t        |t        «      sJ ‚ | ||«      S )z8Extract user and group from systemd-coredump dictionary.ÚCOREDUMP_UIDÚCOREDUMP_GID)ÚgetÚ
isinstanceÚint)ÚclsÚcoredumpr   r   s       r
   Úfrom_systemd_coredumpz!UserGroupID.from_systemd_coredump   sL   € ð �l‰l˜>Ó*ˆÜ˜#œsÔ#Ð#Ð#Ø�l‰l˜>Ó*ˆÜ˜#œsÔ#Ð#Ð#Ù�3˜‹}Ðr   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__Úboolr   Úclassmethodr   © r   r
   r   r      s/   … á$à	ƒHØ	ƒHð.˜ó .ð ñó ñr   r   r   c                  ób   — t        t        j                  «       t        j                  «       «      S )u3   Return the current processâ€™s real user and group.)r   ÚosÚgetuidÚgetgidr   r   r
   Úget_process_user_and_groupr"       s   € ä”r—y‘y“{¤B§I¡I£KÓ0Ð0r   )r   Údataclassesr   Ú	dataclassr   r"   r   r   r
   ú<module>r%      s@   ðñ
 )ã Û 	ð €×ÑÓ÷ð ó ðð(1 Kô 1r   