Home
last modified time | relevance | path

Searched refs:UserRecord (Results 1 – 25 of 60) sorted by relevance

123

/systemd-251/src/home/
Duser-record-util.h9 int user_record_synthesize(UserRecord *h, const char *user_name, const char *realm, const char *ima…
10 int group_record_synthesize(GroupRecord *g, UserRecord *u);
26 int user_record_reconcile(UserRecord *host, UserRecord *embedded, UserReconcileMode mode, UserRecor…
27 int user_record_add_binding(UserRecord *h, UserStorage storage, const char *image_path, sd_id128_t …
39 int user_record_test_home_directory(UserRecord *h);
40 int user_record_test_home_directory_and_warn(UserRecord *h);
41 int user_record_test_image_path(UserRecord *h);
42 int user_record_test_image_path_and_warn(UserRecord *h);
44 int user_record_test_password(UserRecord *h, UserRecord *secret);
45 int user_record_test_recovery_key(UserRecord *h, UserRecord *secret);
[all …]
Dhomework-luks.h8 …t home_setup_luks(UserRecord *h, HomeSetupFlags flags, const char *force_image_path, HomeSetup *se…
10 int home_activate_luks(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache,…
11 int home_deactivate_luks(UserRecord *h, HomeSetup *setup);
12 int home_trim_luks(UserRecord *h, HomeSetup *setup);
14 int home_store_header_identity_luks(UserRecord *h, HomeSetup *setup, UserRecord *old_home);
16 int home_create_luks(UserRecord *h, HomeSetup *setup, const PasswordCache *cache, char **effective_…
18 int home_get_state_luks(UserRecord *h, HomeSetup *setup);
20 int home_resize_luks(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache, U…
22 int home_passwd_luks(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, const PasswordCache *ca…
24 int home_lock_luks(UserRecord *h, HomeSetup *setup);
[all …]
Dhomework.h81 int home_setup(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache, UserRec…
83 …efresh(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, UserRecord *header_home, PasswordCac…
85 int home_maybe_shift_uid(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup);
86 int home_populate(UserRecord *h, int dir_fd);
88 …ntity(UserRecord *h, int root_fd, UserRecord *header_home, UserReconcileMode mode, PasswordCache *…
89 int home_store_embedded_identity(UserRecord *h, int root_fd, uid_t uid, UserRecord *old_home);
90 int home_extend_embedded_identity(UserRecord *h, UserRecord *used, HomeSetup *setup);
92 int user_record_authenticate(UserRecord *h, UserRecord *secret, PasswordCache *cache, bool strict_v…
Dhomed-home.h123 UserRecord *record;
134 UserRecord *secret;
178 int home_new(Manager *m, UserRecord *hr, const char *sysfs, Home **ret);
183 int home_set_record(Home *h, UserRecord *hr);
187 int home_fixate(Home *h, UserRecord *secret, sd_bus_error *error);
188 int home_activate(Home *h, UserRecord *secret, sd_bus_error *error);
189 int home_authenticate(Home *h, UserRecord *secret, sd_bus_error *error);
191 int home_create(Home *h, UserRecord *secret, sd_bus_error *error);
193 int home_update(Home *h, UserRecord *new_record, sd_bus_error *error);
194 int home_resize(Home *h, uint64_t disk_size, UserRecord *secret, bool automatic, sd_bus_error *erro…
[all …]
Dhomework-directory.h7 int home_setup_directory(UserRecord *h, HomeSetup *setup);
8 int home_activate_directory(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *c…
9 int home_create_directory_or_subvolume(UserRecord *h, HomeSetup *setup, UserRecord **ret_home);
10 int home_resize_directory(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cac…
Dhomework.c41 UserRecord *h, in user_record_authenticate()
42 UserRecord *secret, in user_record_authenticate()
351 static int keyring_flush(UserRecord *h) { in keyring_flush()
443 UserRecord *h, in home_setup()
447 UserRecord **ret_header_home) { in home_setup()
601 UserRecord *h, in home_load_embedded_identity()
603 UserRecord *header_home, in home_load_embedded_identity()
606 UserRecord **ret_embedded_home, in home_load_embedded_identity()
607 UserRecord **ret_new_home) { in home_load_embedded_identity()
609 …_cleanup_(user_record_unrefp) UserRecord *embedded_home = NULL, *intermediate_home = NULL, *new_ho… in home_load_embedded_identity()
[all …]
Dhomework-cifs.h7 int home_setup_cifs(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup);
9 int home_activate_cifs(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache,…
11 int home_create_cifs(UserRecord *h, HomeSetup *setup, UserRecord **ret_home);
Duser-record-util.c18 UserRecord *h, in user_record_synthesize()
109 int group_record_synthesize(GroupRecord *g, UserRecord *h) { in group_record_synthesize()
168 UserRecord *host, in user_record_reconcile()
169 UserRecord *embedded, in user_record_reconcile()
171 UserRecord **ret) { in user_record_reconcile()
231 _cleanup_(user_record_unrefp) UserRecord *merged = NULL; in user_record_reconcile()
270 UserRecord *h, in user_record_add_binding()
411 int user_record_test_home_directory(UserRecord *h) { in user_record_test_home_directory()
457 int user_record_test_home_directory_and_warn(UserRecord *h) { in user_record_test_home_directory_and_warn()
475 int user_record_test_image_path(UserRecord *h) { in user_record_test_image_path()
[all …]
Dhomework-directory.c18 int home_setup_directory(UserRecord *h, HomeSetup *setup) { in home_setup_directory()
60 UserRecord *h, in home_activate_directory()
64 UserRecord **ret_home) { in home_activate_directory()
66 _cleanup_(user_record_unrefp) UserRecord *new_home = NULL, *header_home = NULL; in home_activate_directory()
108 int home_create_directory_or_subvolume(UserRecord *h, HomeSetup *setup, UserRecord **ret_home) { in home_create_directory_or_subvolume()
110 _cleanup_(user_record_unrefp) UserRecord *new_home = NULL; in home_create_directory_or_subvolume()
261 UserRecord *h, in home_resize_directory()
265 UserRecord **ret_home) { in home_resize_directory()
267 _cleanup_(user_record_unrefp) UserRecord *embedded_home = NULL, *new_home = NULL; in home_resize_directory()
Duser-record-sign.c9 static int user_record_signable_json(UserRecord *ur, char **ret) { in user_record_signable_json()
10 _cleanup_(user_record_unrefp) UserRecord *reduced = NULL; in user_record_signable_json()
32 int user_record_sign(UserRecord *ur, EVP_PKEY *private_key, UserRecord **ret) { in user_record_sign()
34 _cleanup_(user_record_unrefp) UserRecord *signed_ur = NULL; in user_record_sign()
106 int user_record_verify(UserRecord *ur, EVP_PKEY *public_key) { in user_record_verify()
165 int user_record_has_signature(UserRecord *ur) { in user_record_has_signature()
Duser-record-sign.h8 int user_record_sign(UserRecord *ur, EVP_PKEY *private_key, UserRecord **ret);
17 int user_record_verify(UserRecord *ur, EVP_PKEY *public_key);
19 int user_record_has_signature(UserRecord *ur);
Dhomework-fscrypt.h7 int home_setup_fscrypt(UserRecord *h, HomeSetup *setup, const PasswordCache *cache);
9 int home_create_fscrypt(UserRecord *h, HomeSetup *setup, char **effective_passwords, UserRecord **r…
11 int home_passwd_fscrypt(UserRecord *h, HomeSetup *setup, const PasswordCache *cache, char **effecti…
Dhomework-cifs.c18 UserRecord *h, in home_setup_cifs()
146 UserRecord *h, in home_activate_cifs()
150 UserRecord **ret_home) { in home_activate_cifs()
152 _cleanup_(user_record_unrefp) UserRecord *new_home = NULL, *header_home = NULL; in home_activate_cifs()
187 int home_create_cifs(UserRecord *h, HomeSetup *setup, UserRecord **ret_home) { in home_create_cifs()
188 _cleanup_(user_record_unrefp) UserRecord *new_home = NULL; in home_create_cifs()
Dhomed-home.c54 static int home_start_work(Home *h, const char *verb, UserRecord *hr, UserRecord *secret);
58 static int suitable_home_record(UserRecord *hr) { in suitable_home_record()
94 int home_new(Manager *m, UserRecord *hr, const char *sysfs, Home **ret) { in home_new()
226 int home_set_record(Home *h, UserRecord *hr) { in home_set_record()
227 _cleanup_(user_record_unrefp) UserRecord *new_hr = NULL; in home_set_record()
500 static int home_parse_worker_stdout(int _fd, UserRecord **ret) { in home_parse_worker_stdout()
503 _cleanup_(user_record_unrefp) UserRecord *hr = NULL; in home_parse_worker_stdout()
553 static int home_verify_user_record(Home *h, UserRecord *hr, bool *ret_signed_locally, sd_bus_error … in home_verify_user_record()
668 static void home_fixate_finish(Home *h, int ret, UserRecord *hr) { in home_fixate_finish()
670 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in home_fixate_finish()
[all …]
Duser-record-pwquality.c15 UserRecord *hr, in user_record_quality_check_password()
16 UserRecord *secret, in user_record_quality_check_password()
83 UserRecord *hr, in user_record_quality_check_password()
84 UserRecord *secret, in user_record_quality_check_password()
Dhomed-manager.h80 int manager_augment_record_with_uid(Manager *m, UserRecord *hr);
88 int manager_verify_user_record(Manager *m, UserRecord *hr);
91 int manager_sign_user_record(Manager *m, UserRecord *u, UserRecord **ret, sd_bus_error *error);
Dhomed-bus.c6 int bus_message_read_secret(sd_bus_message *m, UserRecord **ret, sd_bus_error *error) { in bus_message_read_secret()
8 _cleanup_(user_record_unrefp) UserRecord *hr = NULL; in bus_message_read_secret()
39 int bus_message_read_home_record(sd_bus_message *m, UserRecordLoadFlags flags, UserRecord **ret, sd… in bus_message_read_home_record()
41 _cleanup_(user_record_unrefp) UserRecord *hr = NULL; in bus_message_read_home_record()
Dhomework-quota.h6 int home_update_quota_btrfs(UserRecord *h, const char *path);
7 int home_update_quota_classic(UserRecord *h, const char *path);
8 int home_update_quota_auto(UserRecord *h, const char *path);
Dhomework-luks.c72 static int resize_image_loop(UserRecord *h, HomeSetup *setup, uint64_t old_image_size, uint64_t new…
260 UserRecord *h, in upload_to_keyring()
300 UserRecord *h, in luks_try_passwords()
344 UserRecord *h, in luks_setup()
457 static int make_dm_names(UserRecord *h, HomeSetup *setup) { in make_dm_names()
478 UserRecord *h, in acquire_open_luks_device()
510 UserRecord *h, in luks_open()
802 UserRecord *h, in luks_validate_home_record()
805 UserRecord **ret_luks_home_record) { in luks_validate_home_record()
815 _cleanup_(user_record_unrefp) UserRecord *lhr = NULL; in luks_validate_home_record()
[all …]
Dhomed-home-bus.c85 _cleanup_(user_record_unrefp) UserRecord *augmented = NULL; in bus_home_get_record_json()
148 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_activate()
240 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_realize()
326 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_fixate()
356 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_authenticate()
395 int bus_home_method_update_record(Home *h, sd_bus_message *message, UserRecord *hr, sd_bus_error *e… in bus_home_method_update_record()
439 _cleanup_(user_record_unrefp) UserRecord *hr = NULL; in bus_home_method_update()
458 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_resize()
507 _cleanup_(user_record_unrefp) UserRecord *new_secret = NULL, *old_secret = NULL; in bus_home_method_change_password()
582 _cleanup_(user_record_unrefp) UserRecord *secret = NULL; in bus_home_method_unlock()
[all …]
Dhomework-quota.c14 int home_update_quota_btrfs(UserRecord *h, const char *path) { in home_update_quota_btrfs()
39 int home_update_quota_classic(UserRecord *h, const char *path) { in home_update_quota_classic()
90 int home_update_quota_auto(UserRecord *h, const char *path) { in home_update_quota_auto()
/systemd-251/src/shared/
Duser-record.h231 typedef struct UserRecord { struct
368 } UserRecord; argument
370 UserRecord* user_record_new(void);
371 UserRecord* user_record_ref(UserRecord *h);
372 UserRecord* user_record_unref(UserRecord *h);
374 DEFINE_TRIVIAL_CLEANUP_FUNC(UserRecord*, user_record_unref);
376 int user_record_load(UserRecord *h, JsonVariant *v, UserRecordLoadFlags flags);
377 int user_record_build(UserRecord **ret, ...);
379 const char *user_record_user_name_and_realm(UserRecord *h);
380 UserStorage user_record_storage(UserRecord *h);
[all …]
Duser-record.c24 UserRecord* user_record_new(void) { in user_record_new()
25 UserRecord *h; in user_record_new()
27 h = new(UserRecord, 1); in user_record_new()
31 *h = (UserRecord) { in user_record_new()
127 static UserRecord* user_record_free(UserRecord *h) { in user_record_free()
195 DEFINE_TRIVIAL_REF_UNREF_FUNC(UserRecord, user_record, user_record_free);
638 … _JSON_VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(UserRecord, password), … in dispatch_secret()
639 … _JSON_VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(UserRecord, token_pin), … in dispatch_secret()
640 … _JSON_VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(UserRecord, token_pin), … in dispatch_secret()
641 …rmitted", JSON_VARIANT_BOOLEAN, json_dispatch_tristate, offsetof(UserRecord, pkcs11_protecte… in dispatch_secret()
[all …]
Duser-record-nss.h14 int nss_passwd_to_user_record(const struct passwd *pwd, const struct spwd *spwd, UserRecord **ret);
17 int nss_user_record_by_name(const char *name, bool with_shadow, UserRecord **ret);
18 int nss_user_record_by_uid(uid_t uid, bool with_shadow, UserRecord **ret);
Duserdb.h42 int userdb_by_name(const char *name, UserDBFlags flags, UserRecord **ret);
43 int userdb_by_uid(uid_t uid, UserDBFlags flags, UserRecord **ret);
45 int userdb_iterator_get(UserDBIterator *iterator, UserRecord **ret);

123