Searched defs:user (Results 1 - 25 of 30) sorted by relevance

12

/systemd/src/resolve/
H A Dresolved.c30 #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);
/systemd/src/network/
H A Dnetworkd.c25 #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);
H A Dnetworkd-netdev-tuntap.c27 #include "user-util.h"
66 const char *user; local
92 user = t->user_name;
94 r = get_user_creds(&user, &uid, NULL, NULL, NULL);
96 return log_netdev_error_errno(netdev, r, "Cannot resolve user name %s: %m", t->user_name);
/systemd/src/timesync/
H A Dtimesyncd.c31 #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/core/
H A Dbus-policy.c27 #include "user-util.h"
59 const char *user = policy->name; local
62 r = get_user_creds(&user, &uid, NULL, NULL, NULL);
H A Dsocket.h154 char *user, *group; member in struct:Socket
H A Dexecute.h137 char *user; member in struct:ExecContext
179 /* This is not exposed to the user but available
H A Dsocket.c59 #include "user-util.h"
163 s->user = mfree(s->user);
620 if (!isempty(s->user) || !isempty(s->group))
624 prefix, strna(s->user),
1592 /* We have to resolve the user names out-of-process, hence
1609 if (!isempty(s->user)) {
1610 const char *user = s->user; local
1612 r = get_user_creds(&user,
[all...]
/systemd/src/shared/
H A Dutmp-wtmp.h36 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 Dutmp-wtmp.c40 #include "user-util.h"
131 * each entry type resp. user; i.e. basically a key/value
215 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user) { argument
246 strncpy(store.ut_user, user, sizeof(store.ut_user)-1);
/systemd/src/bus-proxyd/
H A Dbus-proxyd.c45 #include "user-util.h"
284 const char *user = "systemd-bus-proxy"; local
286 r = get_user_creds(&user, &uid, &gid, NULL, NULL);
288 log_error_errno(r, "Cannot resolve user name %s: %m", user);
H A Dbus-xml-policy.c33 #include "user-util.h"
170 else if (streq(name, "user"))
304 else if (streq(name, "user"))
388 log_error_errno(r, "Failed to resolve user %s, ignoring policy: %m", u);
573 log_error_errno(r, "Failed to resolve user %s: %m", name);
778 * 3. Check user items
1130 _cleanup_free_ char *user; local
1132 user = uid_to_name(i->uid);
1135 prefix, strna(user), i->uid);
1323 [POLICY_ITEM_USER] = "user",
[all...]
/systemd/src/dbus1-generator/
H A Ddbus1-generator.c40 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
/systemd/src/login/
H A Dlogind-user-dbus.c26 #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 Dlogind-core.c35 #include "user-util.h"
301 int manager_get_user_by_pid(Manager *m, pid_t pid, User **user) { argument
307 assert(user);
320 *user = u;
363 bool manager_shall_kill(Manager *m, const char *user) { argument
365 assert(user);
370 if (strv_contains(m->kill_exclude_users, user))
376 return strv_contains(m->kill_only_users, user);
H A Dlogind-session.h27 #include "logind-user.h"
77 User *user; member in struct:Session
H A Dlogind.c347 log_notice_errno(k, "Couldn't add lingering user %s: %m", de->d_name);
365 /* Read in user data stored on disk */
382 log_error_errno(k, "Failed to add user by file name %s: %m", de->d_name);
611 r = sd_bus_add_fallback_vtable(m->bus, NULL, "/org/freedesktop/login1/user", "org.freedesktop.login1.User", user_vtable, user_object_find, m);
613 return log_error_errno(r, "Failed to add user object vtable: %m");
615 r = sd_bus_add_node_enumerator(m->bus, NULL, "/org/freedesktop/login1/user", user_node_enumerator, m);
617 return log_error_errno(r, "Failed to add user enumerator: %m");
693 * old user-space might run multiple sessions on a single VT, *sigh*.
881 User *user; local
913 while ((user
993 User *user; local
[all...]
H A Dloginctl.c45 #include "user-util.h"
95 const char *id, *user, *seat, *object; local
126 while ((r = sd_bus_message_read(reply, "(susso)", &id, &uid, &user, &seat, &object)) > 0) {
127 printf("%10s %10u %-16s %-16s\n", id, (unsigned) uid, user, seat);
142 const char *user, *object; local
173 while ((r = sd_bus_message_read(reply, "(uso)", &uid, &user, &object)) > 0) {
174 printf("%10u %-16s\n", (unsigned) uid, user);
503 printf("\t Remote: user %s\n", i.remote_user);
725 log_error("Invalid user ID: " UID_FMT, uid);
925 return print_user_status_info(bus, "/org/freedesktop/login1/user/sel
[all...]
H A Dlogind-session.c46 #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...]
/systemd/src/nspawn/
H A Dnspawn-setuid.c31 #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...]
H A Dnspawn-settings.h58 char *user; member in struct:Settings
/systemd/src/test/
H A Dtest-unit-file.c42 #include "user-util.h"
585 _cleanup_free_ char *mid = NULL, *bid = NULL, *host = NULL, *uid = NULL, *user = NULL; local
590 assert_se((user = getusername_malloc()));
615 expect(i, "%u", user);
622 expect(i2, "%u", user);
628 expect(i3, "%u", user);
635 expect(i4, "%u", user);
H A Dtest-unit-name.c39 #include "user-util.h"
202 _cleanup_free_ char *mid = NULL, *bid = NULL, *host = NULL, *uid = NULL, *user = NULL, *shell = NULL, *home = NULL; local
207 assert_se(user = getusername_malloc());
231 assert_se(setenv("XDG_RUNTIME_DIR", "/run/user/1/", 1) == 0);
249 expect(u, "%u", user);
255 expect(u, "%t", "/run/user/*");
269 expect(u2, "%u", user);
275 expect(u2, "%t", "/run/user/*");
/systemd/src/machine/
H A Dmachine-dbus.c50 #include "user-util.h"
647 const char *p, *unit, *user, *path, *description, *utmp_id; local
653 r = sd_bus_message_read(message, "ss", &user, &path);
656 if (isempty(user))
657 user = NULL;
741 description = strjoina("Shell for User ", isempty(user) ? "root" : user);
753 "UtmpMode", "s", "user",
759 r = sd_bus_message_append(tm, "(sv)", "User", "s", isempty(user) ? "root" : user);
[all...]
/systemd/src/coredump/
H A Dcoredump.c61 #include "user-util.h"
182 [CONTEXT_PID] = "user.coredump.pid",
183 [CONTEXT_UID] = "user.coredump.uid",
184 [CONTEXT_GID] = "user.coredump.gid",
185 [CONTEXT_SIGNAL] = "user.coredump.signal",
186 [CONTEXT_TIMESTAMP] = "user.coredump.timestamp",
187 [CONTEXT_COMM] = "user.coredump.comm",
188 [CONTEXT_EXE] = "user.coredump.exe",
573 const char *user = "systemd-coredump"; local
575 r = get_user_creds(&user,
[all...]

Completed in 73 milliseconds

12