]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/home/home-util.h
homed: add env var to override dir where we fine stored user records
[thirdparty/systemd.git] / src / home / home-util.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
70a5db58
LP
2#pragma once
3
4#include <stdbool.h>
5
6#include "sd-bus.h"
7
8#include "time-util.h"
9#include "user-record.h"
10
f509ed4b
LP
11/* See https://systemd.io/UIDS-GIDS for details how this range fits into the rest of the world */
12#define HOME_UID_MIN 60001
13#define HOME_UID_MAX 60513
14
70a5db58
LP
15bool suitable_user_name(const char *name);
16int suitable_realm(const char *realm);
17int suitable_image_path(const char *path);
18
c07bf7a4
LP
19bool supported_fstype(const char *fstype);
20
70a5db58
LP
21int split_user_name_realm(const char *t, char **ret_user_name, char **ret_realm);
22
23int bus_message_append_secret(sd_bus_message *m, UserRecord *secret);
24
25/* Many of our operations might be slow due to crypto, fsck, recursive chown() and so on. For these
201632e3 26 * operations permit a *very* long timeout */
70a5db58 27#define HOME_SLOW_BUS_CALL_TIMEOUT_USEC (2*USEC_PER_MINUTE)
005daeed
LP
28
29const char *home_record_dir(void);