Home
last modified time | relevance | path

Searched refs:ucred (Results 1 - 25 of 40) sorted by relevance

12

/third_party/eudev/src/udev/
H A Dudev-ctrl.c189 struct ucred ucred = {}; in udev_ctrl_get_connection() local
216 r = getpeercred(conn->sock, &ucred); in udev_ctrl_get_connection()
221 if (ucred.uid > 0) { in udev_ctrl_get_connection()
222 log_error("sender uid="UID_FMT", message ignored", ucred.uid); in udev_ctrl_get_connection()
351 char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; in udev_ctrl_receive_msg()
358 struct ucred *cred; in udev_ctrl_receive_msg()
405 cred = (struct ucred *) CMSG_DATA(cmsg); in udev_ctrl_receive_msg()
H A Dudevd.c623 uint8_t buf[CMSG_SPACE(sizeof(struct ucred))]; in worker_returned()
628 struct ucred *ucred = NULL; in worker_returned() local
659 cmsg->cmsg_len == CMSG_LEN(sizeof(struct ucred))) in worker_returned()
660 ucred = (struct ucred*) CMSG_DATA(cmsg); in worker_returned()
663 if (!ucred || ucred->pid <= 0) { in worker_returned()
669 worker = hashmap_get(workers, UINT_TO_PTR(ucred->pid)); in worker_returned()
671 log_debug("worker ["PID_FMT"] returned, but is no longer tracked", ucred in worker_returned()
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Diochannel.c268 typedef struct ucred pa_ucred_t;
311 ssize_t pa_iochannel_write_with_creds(pa_iochannel*io, const void*data, size_t l, const pa_creds *ucred) { in pa_iochannel_write_with_creds() argument
341 if (ucred) { in pa_iochannel_write_with_creds()
342 u->uid = ucred->uid; in pa_iochannel_write_with_creds()
343 u->gid = ucred->gid; in pa_iochannel_write_with_creds()
H A Diochannel.h59 ssize_t pa_iochannel_write_with_creds(pa_iochannel*io, const void*data, size_t l, const pa_creds *ucred);
H A Dprotocol-native.c2582 pa_creds ucred; in command_auth() local
2584 ucred.uid = getuid(); in command_auth()
2585 ucred.gid = getgid(); in command_auth()
2587 pa_pstream_send_tagstruct_with_creds(c->pstream, reply, &ucred); in command_auth()
/third_party/eudev/src/shared/
H A Dutil.c1651 int getpeercred(int fd, struct ucred *ucred) { in getpeercred() argument
1652 socklen_t n = sizeof(struct ucred); in getpeercred()
1653 struct ucred u; in getpeercred()
1657 assert(ucred); in getpeercred()
1663 if (n != sizeof(struct ucred)) in getpeercred()
1675 *ucred = u; in getpeercred()
H A Dutil.h398 int getpeercred(int fd, struct ucred *ucred);
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
H A Dgetsockopt02.c44 struct ucred cred; in test_function()
/third_party/eudev/src/libudev/
H A Dlibudev-monitor.c545 char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; in udev_monitor_receive_device()
548 struct ucred *cred; in udev_monitor_receive_device()
603 cred = (struct ucred *)CMSG_DATA(cmsg); in udev_monitor_receive_device()
/third_party/rust/crates/libc/src/unix/solarish/
H A Dmod.rs3091 pub fn getpeerucred(fd: ::c_int, ucred: *mut *mut ucred_t) -> ::c_int; in getpeerucred()
3093 pub fn ucred_free(ucred: *mut ucred_t); in ucred_free()
3095 pub fn ucred_geteuid(ucred: *const ucred_t) -> ::uid_t; in ucred_geteuid()
3096 pub fn ucred_getruid(ucred: *const ucred_t) -> ::uid_t; in ucred_getruid()
3097 pub fn ucred_getsuid(ucred: *const ucred_t) -> ::uid_t; in ucred_getsuid()
3098 pub fn ucred_getegid(ucred: *const ucred_t) -> ::gid_t; in ucred_getegid()
3099 pub fn ucred_getrgid(ucred: *const ucred_t) -> ::gid_t; in ucred_getrgid()
3100 pub fn ucred_getsgid(ucred: *const ucred_t) -> ::gid_t; in ucred_getsgid()
3101 pub fn ucred_getgroups(ucred: *const ucred_t, groups: *mut *const ::gid_t) -> ::c_int; in ucred_getgroups()
3102 pub fn ucred_getpid(ucred in ucred_getgroups()
[all...]
/third_party/rust/crates/nix/src/sys/socket/
H A Dmod.rs385 pub struct UnixCredentials(libc::ucred);
392 UnixCredentials(libc::ucred { in new()
422 impl From<libc::ucred> for UnixCredentials {
423 fn from(cred: libc::ucred) -> Self { in from()
428 impl From<UnixCredentials> for libc::ucred {
879 let cred: libc::ucred = ptr::read_unaligned(p as *const _); in decode_from()
1206 &creds.0 as *const libc::ucred as *const u8 in copy_to_cmsg_data()
/third_party/rust/crates/linux-raw-sys/gen/modules/
H A Dgeneral.h316 struct ucred { struct
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dsocket.h57 struct ucred { struct
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dsocket.h46 struct ucred { struct
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dsocket.h57 struct ucred { struct
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dsocket.h57 struct ucred { struct
/third_party/musl/porting/linux/user/include/sys/
H A Dsocket.h61 struct ucred { struct
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dsocket.h57 struct ucred { struct
/third_party/musl/include/sys/
H A Dsocket.h61 struct ucred { struct
/third_party/pulseaudio/src/pulse/
H A Dcontext.c658 pa_creds ucred; in setup_context() local
663 ucred.uid = getuid(); in setup_context()
664 ucred.gid = getgid(); in setup_context()
666 pa_pstream_send_tagstruct_with_creds(c->pstream, t, &ucred); in setup_context()
/third_party/pulseaudio/src/modules/
H A Dmodule-tunnel.c2049 pa_creds ucred; in on_sink_created() local
2054 ucred.uid = getuid(); in on_sink_created()
2055 ucred.gid = getgid(); in on_sink_created()
2057 pa_pstream_send_tagstruct_with_creds(u->pstream, t, &ucred); in on_sink_created()
/third_party/rust/crates/nix/test/sys/
H A Dtest_socket.rs1396 let space = cmsg_space!(libc::ucred, RawFd); in test_scm_credentials_and_rights()
1414 use libc::ucred; in test_impl_scm_credentials_and_rights()
1437 let cred = ucred { in test_impl_scm_credentials_and_rights()
/third_party/rust/crates/libc/src/unix/haiku/
H A Dmod.rs357 pub struct ucred { structure names
/third_party/rust/crates/libc/src/unix/linux_like/android/
H A Dmod.rs189 pub struct ucred { structure names
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dgeneral.rs4933 pub struct ucred { structure names

Completed in 66 milliseconds

12