Searched refs:user (Results 1 - 25 of 67) sorted by relevance

123

/systemd/src/nspawn/
H A Dnspawn-setuid.h22 int change_uid_gid(const char *user, char **ret);
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...]
/systemd/test/bus-policy/
H A Dhello.conf8 <allow user="*"/>
10 <deny user="1"/>
H A Dcheck-own-rules.conf4 <user>mybususer</user>
9 <allow user="*"/>
H A Downerships.conf15 <policy user="root">
20 <policy user="1">
H A Dsignals.conf11 <policy user="1">
H A Dmany-rules.conf4 <user>mybususer</user>
12 <allow user="*"/>
20 <deny user="root"/>
31 <allow user="*"/>
39 <deny user="root"/>
H A Dtest.conf5 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 D50-systemd-user.sh3 systemctl --user import-environment DISPLAY XAUTHORITY
/systemd/src/udev/mtd_probe/
H A Dmtd_probe.h22 #include <mtd/mtd-user.h>
H A Dmtd_probe.c21 #include <mtd/mtd-user.h>
/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 Dfirewall-util.c125 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 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);
H A Dorg.freedesktop.resolve1.conf16 <policy user="systemd-resolve">
/systemd/src/login/
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...]
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-dbus.c50 #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 Dlogind-session-dbus.c50 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 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);
/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/hostname/
H A Dorg.freedesktop.hostname1.conf16 <policy user="root">
/systemd/src/locale/
H A Dorg.freedesktop.locale1.conf16 <policy user="root">
/systemd/src/timedate/
H A Dorg.freedesktop.timedate1.conf16 <policy user="root">
/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

Completed in 817 milliseconds

123