/systemd/tmpfiles.d/ |
H A D | home.conf | 10 Q /home 0755 - - -
|
/systemd/src/shared/ |
H A D | path-lookup.c | 48 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 D | nspawn-setuid.c | 93 _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 D | nspawn.c | 1779 _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 D | user-util.h | 40 int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
|
H A D | user-util.c | 103 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 D | sysusers.c | 59 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 D | test-unit-name.c | 151 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 D | gpt-auto-generator.c | 561 _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 D | run.c | 995 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 D | execute.c | 1250 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
|