From: Alexander Lubyagin <lubyagin@yandex.ru>
To: community@lists.altlinux.org
Subject: [Comm] Вопрос по выполнению привилегированных команд и hasher-privd
Date: Wed, 1 Jul 2026 20:22:29 +0300
Message-ID: <1fc99c07-c49b-4f69-a72d-00199af5ebec@yandex.ru> (raw)
Добрый день.
Коллеги привели пример правильной архитектуры (клиент-серверной) для
следующей задачи.
Из выделенного пользовательского процесса (зафиксирован 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
Спасибо за ответы.
-
Александр Лубягин
reply other threads:[~2026-07-01 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1fc99c07-c49b-4f69-a72d-00199af5ebec@yandex.ru \
--to=lubyagin@yandex.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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