* [Comm] Вопрос по выполнению привилегированных команд и hasher-privd
@ 2026-07-01 17:22 Alexander Lubyagin
0 siblings, 0 replies; only message in thread
From: Alexander Lubyagin @ 2026-07-01 17:22 UTC (permalink / raw)
To: community
Добрый день.
Коллеги привели пример правильной архитектуры (клиент-серверной) для
следующей задачи.
Из выделенного пользовательского процесса (зафиксирован realpath
запускаемой программы, либо UID/GID, с которым он запускается). Стоит
задача - выполнить привилегированную команду, но не дать остальным
пользовательским процессам (непривилегированным) её выполнять.
Смотрю код hasher-priv/hasher-privd.c
Правильно ли я понял, что он [hasher-privd] при установлении сессии с
клиентом проверяет только лишь валидность uid/gid (SO_PEERCRED)?
Функция hasher-privd.c:start_session():127-149
https://git.altlinux.org/gears/h/hasher-priv.git?p=hasher-priv.git;a=summary
Спасибо за ответы.
-
Александр Лубягин
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 17:22 [Comm] Вопрос по выполнению привилегированных команд и hasher-privd Alexander Lubyagin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git