/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v261
src/shared/machine-bind-user.h
32 строки
1 KB
Daan De Meyer
nspawn/vmspawn: Add --bind-user-group= option
31 окт 2025, 10:57
31 окт 2025, 10:57
def01c7
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "shared-forward.h" typedef struct MachineBindUserData { /* The host's user/group records */ UserRecord *host_user; GroupRecord *host_group; /* The mapped records to place into the container */ UserRecord *payload_user; GroupRecord *payload_group; } MachineBindUserData; typedef struct MachineBindUserContext { MachineBindUserData *data; size_t n_data; } MachineBindUserContext; MachineBindUserContext* machine_bind_user_context_free(MachineBindUserContext *c); DEFINE_TRIVIAL_CLEANUP_FUNC(MachineBindUserContext*, machine_bind_user_context_free); int machine_bind_user_prepare( const char *directory, char **bind_user, const char *bind_user_shell, bool bind_user_shell_copy, const char *bind_user_home_mount_directory, char **bind_user_groups, MachineBindUserContext **ret);