/systemd/src/nspawn/ |
H A D | nspawn-setuid.h | 22 int change_uid_gid(const char *user, char **ret);
|
H A D | nspawn-setuid.c | 31 #include "user-util.h" 89 int change_uid_gid(const char *user, char **_home) { argument 105 if (!user || streq(user, "root") || streq(user, "0")) { 116 /* First, get user credentials */ 117 fd = spawn_getent("passwd", user, &pid); 129 log_error("Failed to resolve user %s.", user); 143 log_error("/etc/passwd entry has invalid user fiel [all...] |
/systemd/test/bus-policy/ |
H A D | hello.conf | 8 <allow user="*"/> 10 <deny user="1"/>
|
H A D | check-own-rules.conf | 4 <user>mybususer</user> 9 <allow user="*"/>
|
H A D | ownerships.conf | 15 <policy user="root"> 20 <policy user="1">
|
H A D | signals.conf | 11 <policy user="1">
|
H A D | many-rules.conf | 4 <user>mybususer</user> 12 <allow user="*"/> 20 <deny user="root"/> 31 <allow user="*"/> 39 <deny user="root"/>
|
H A D | test.conf | 5 policy so that a particular user can own a service, and other 9 this user can only send the one kind of message --> 10 <policy user="root">
|
/systemd/xorg/ |
H A D | 50-systemd-user.sh | 3 systemctl --user import-environment DISPLAY XAUTHORITY
|
/systemd/src/udev/mtd_probe/ |
H A D | mtd_probe.h | 22 #include <mtd/mtd-user.h>
|
H A D | mtd_probe.c | 21 #include <mtd/mtd-user.h>
|
/systemd/src/shared/ |
H A D | utmp-wtmp.h | 36 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user); 62 static inline int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user) { argument
|
H A D | firewall-util.c | 125 strncpy(t->u.user.name, "MASQUERADE", sizeof(t->u.user.name)); 231 strncpy(m->u.user.name, "tcp", sizeof(m->u.user.name)); 240 strncpy(m->u.user.name, "udp", sizeof(m->u.user.name)); 252 strncpy(m->u.user.name, "addrtype", sizeof(m->u.user.name)); 253 m->u.user.revision = 1; 262 strncpy(t->u.user [all...] |
/systemd/src/resolve/ |
H A D | resolved.c | 30 #include "user-util.h" 34 const char *user = "systemd-resolve"; local 57 r = get_user_creds(&user, &uid, &gid, NULL, NULL); 59 log_error_errno(r, "Cannot resolve user name %s: %m", user);
|
H A D | org.freedesktop.resolve1.conf | 16 <policy user="systemd-resolve">
|
/systemd/src/login/ |
H A D | logind-session.c | 46 #include "user-util.h" 112 if (s->user) { 113 LIST_REMOVE(sessions_by_user, s->user->sessions, s); 115 if (s->user->display == s) 116 s->user->display = NULL; 153 assert(!s->user); 155 s->user = u; 166 if (!s->user) 180 assert(s->user); 191 s->user 359 User *user; local [all...] |
H A D | logind-user-dbus.c | 26 #include "logind-user.h" 29 #include "user-util.h" 262 User *user; local 271 if (streq(path, "/org/freedesktop/login1/user/self")) { 287 p = startswith(path, "/org/freedesktop/login1/user/_"); 296 user = hashmap_get(m->users, UID_TO_PTR(uid)); 297 if (!user) 300 *found = user; 309 if (asprintf(&s, "/org/freedesktop/login1/user/_"UID_FMT, u->uid) < 0) 319 User *user; local [all...] |
H A D | logind-dbus.c | 50 #include "user-util.h" 81 User *user; local 101 user = hashmap_get(m->users, UID_TO_PTR(uid)); 102 if (!user) 103 return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_USER, "No user "UID_FMT" known or logged in", uid); 105 *ret = user; 335 User *user; local 345 r = manager_get_user_from_creds(m, message, uid, error, &user); 349 p = user_bus_path(user); 359 User *user local 463 User *user; local 581 User *user = NULL; local 1000 User *user; local 1040 User *user; local 2594 User *user; local 2653 User *user; local 2681 User *user; local [all...] |
H A D | logind-session-dbus.c | 50 p = user_bus_path(s->user); 54 return sd_bus_message_append(reply, "(uo)", (uint32_t) s->user->uid, p); 72 return sd_bus_message_append(reply, "s", s->user->name); 195 s->user->uid, 237 s->user->uid, 273 if (uid != 0 && uid != s->user->uid) 312 s->user->uid, 348 if (uid != 0 && (force || uid != s->user->uid)) 699 /* This is called after the session scope and the user service 706 if (!sd_bus_error_is_set(error) && (s->scope_job || s->user [all...] |
/systemd/src/network/ |
H A D | networkd.c | 25 #include "user-util.h" 29 const char *user = "systemd-network"; local 46 r = get_user_creds(&user, &uid, &gid, NULL, NULL); 48 log_error_errno(r, "Cannot resolve user name %s: %m", user);
|
/systemd/src/timesync/ |
H A D | timesyncd.c | 31 #include "user-util.h" 85 const char *user = "systemd-timesync"; local 103 r = get_user_creds(&user, &uid, &gid, NULL, NULL); 105 log_error_errno(r, "Cannot resolve user name %s: %m", user);
|
/systemd/src/hostname/ |
H A D | org.freedesktop.hostname1.conf | 16 <policy user="root">
|
/systemd/src/locale/ |
H A D | org.freedesktop.locale1.conf | 16 <policy user="root">
|
/systemd/src/timedate/ |
H A D | org.freedesktop.timedate1.conf | 16 <policy user="root">
|
/systemd/src/dbus1-generator/ |
H A D | dbus1-generator.c | 40 const char *user, 81 if (user) 82 fprintf(f, "User=%s\n", user); 152 _cleanup_free_ char *name = NULL, *exec = NULL, *user = NULL, *service = NULL; local 157 { "D-BUS Service", "User", config_parse_string, 0, &user }, 212 return create_dbus_files(p, name, service, exec, user, type); 317 return log_error_errno(r, "Failed to determine whether we are running as user or system instance: %m"); 35 create_dbus_files( const char *path, const char *name, const char *service, const char *exec, const char *user, const char *type) argument
|