Lines Matching refs:ucred
32 static bool allow_object_pid(const struct ucred *ucred) { in allow_object_pid() argument
33 return ucred && ucred->uid == 0; in allow_object_pid()
38 const struct ucred *ucred, in server_process_entry_meta() argument
85 allow_object_pid(ucred)) { in server_process_entry_meta()
99 const struct ucred *ucred, in server_process_entry() argument
179 server_process_entry_meta(p, l, ucred, in server_process_entry()
232 server_process_entry_meta(k, (e - p) + 1 + l, ucred, in server_process_entry()
264 … server_forward_syslog(s, syslog_fixup_facility(priority), identifier, message, ucred, tv); in server_process_entry()
267 server_forward_kmsg(s, priority, identifier, message, ucred); in server_process_entry()
270 server_forward_console(s, priority, identifier, message, ucred); in server_process_entry()
273 server_forward_wall(s, priority, identifier, message, ucred); in server_process_entry()
298 const struct ucred *ucred, in server_process_native_message() argument
309 if (ucred && pid_is_valid(ucred->pid)) { in server_process_native_message()
310 r = client_context_get(s, ucred->pid, ucred, label, label_len, NULL, &context); in server_process_native_message()
312 …g_warning_errno(r, "Failed to retrieve credentials for PID " PID_FMT ", ignoring: %m", ucred->pid); in server_process_native_message()
318 context, ucred, tv, label, label_len); in server_process_native_message()
325 const struct ucred *ucred, in server_process_native_file() argument
342 if (!sealed && (!ucred || ucred->uid != 0)) { in server_process_native_file()
400 server_process_native_message(s, p, st.st_size, ucred, tv, label, label_len); in server_process_native_file()
449 server_process_native_message(s, p, n, ucred, tv, label, label_len); in server_process_native_file()