Searched refs:home (Results 1 - 11 of 11) sorted by relevance

/systemd/tmpfiles.d/
H A Dhome.conf10 Q /home 0755 - - -
/systemd/src/shared/
H A Dpath-lookup.c48 const char *home; local
50 home = getenv("HOME");
51 if (home) {
52 r = strappend(home, "/.config/systemd/user");
93 const char *home; local
95 home = getenv("HOME");
96 if (home)
97 res = strjoin(home, "/.local/share", suffix, NULL);
/systemd/src/nspawn/
H A Dnspawn-setuid.c93 _cleanup_free_ char *home = NULL; local
178 log_error("/etc/passwd entry has invalid home directory field.");
196 home = strdup(h);
197 if (!home)
246 r = mkdir_parents(home, 0775);
248 return log_error_errno(r, "Failed to make home root directory: %m");
250 r = mkdir_safe(home, 0755, uid, gid);
252 return log_error_errno(r, "Failed to make home directory: %m");
268 *_home = home;
269 home
[all...]
H A Dnspawn.c1779 _cleanup_free_ char *home = NULL, *root = NULL, *secondary_root = NULL, *srv = NULL, *generic = NULL; local
1989 if (home && nr >= home_nr)
1995 r = free_and_strdup(&home, node);
2113 if (home) {
2114 *home_device = home;
2115 home = NULL;
2212 r = mount_device(home_device, arg_directory, "/home", home_device_rw);
2214 return log_error_errno(r, "Failed to mount home directory: %m");
2452 _cleanup_free_ char *home = NULL; local
2554 r = change_uid_gid(arg_user, &home);
[all...]
/systemd/src/basic/
H A Duser-util.h40 int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
H A Duser-util.c103 const char **home,
124 if (home)
125 *home = "/root";
166 if (home)
167 *home = p->pw_dir;
353 /* Hardcode home directory for root to avoid NSS */
400 /* Hardcode home directory for root to avoid NSS */
100 get_user_creds( const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell) argument
/systemd/src/sysusers/
H A Dsysusers.c59 char *home; member in struct:Item
595 /* We default to the root directory as home */
596 .pw_dir = i->home ? i->home : (char*) "/",
1296 if (!streq_ptr(a->home, b->home))
1387 _cleanup_free_ char *action = NULL, *name = NULL, *id = NULL, *resolved_name = NULL, *resolved_id = NULL, *description = NULL, *home = NULL; local
1400 r = extract_many_words(&p, NULL, EXTRACT_QUOTES, &action, &name, &id, &description, &home, NULL);
1465 /* Verify home */
1466 if (isempty(home) || stre
[all...]
/systemd/src/test/
H A Dtest-unit-name.c151 test_unit_name_to_path_one("home.mount", "/home", 0);
152 test_unit_name_to_path_one("home-lennart.mount", "/home/lennart", 0);
153 test_unit_name_to_path_one("home-lennart-.mount", NULL, -EINVAL);
154 test_unit_name_to_path_one("-home-lennart.mount", NULL, -EINVAL);
155 test_unit_name_to_path_one("-home--lennart.mount", NULL, -EINVAL);
156 test_unit_name_to_path_one("home-..-lennart.mount", NULL, -EINVAL);
158 test_unit_name_to_path_one("home/foo", NULL, -EINVAL);
182 test_unit_name_mangle_one(UNIT_NAME_NOGLOB, "/home", "hom
202 _cleanup_free_ char *mid = NULL, *bid = NULL, *host = NULL, *uid = NULL, *user = NULL, *shell = NULL, *home = NULL; local
[all...]
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c561 _cleanup_free_ char *boot = NULL, *home = NULL, *srv = NULL; local
762 /* We only care for the first /home partition */
763 if (home && nr >= home_nr)
769 r = free_and_strdup(&home, subnode);
797 if (home) {
798 k = probe_and_add_mount("home", home, "/home", home_rw, "Home Partition", SPECIAL_LOCAL_FS_TARGET);
/systemd/src/run/
H A Drun.c995 const char *home, *shell; local
999 r = get_user_creds(&arg_exec_user, &uid, &gid, &home, &shell);
1003 r = strv_extendf(&user_env, "HOME=%s", home);
/systemd/src/core/
H A Dexecute.c1250 const char *home,
1297 if (home) {
1298 x = strappend("HOME=", home);
1453 const char *username = NULL, *home = NULL, *shell = NULL, *wd; local
1528 r = get_user_creds(&username, &uid, &gid, &home, &shell);
1810 wd = home;
2006 r = build_environment(context, params, n_fds, home, username, shell, &our_env);
1246 build_environment( const ExecContext *c, const ExecParameters *p, unsigned n_fds, const char *home, const char *username, const char *shell, char ***ret) argument

Completed in 2531 milliseconds