Lines Matching refs:cr
73 static int check_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_mac_perms() argument
89 audit_data.cr = cr; in check_mac_perms()
99 static int check_control_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_control_mac_perms() argument
113 return check_mac_perms(ctl_name, sctx, cr); in check_control_mac_perms()
237 struct ucred cr; in handle_property_set_fd() local
240 socklen_t cr_size = sizeof(cr); in handle_property_set_fd()
251 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) { in handle_property_set_fd()
262 ERROR("sys_prop: timeout waiting for uid=%d to send property message.\n", cr.uid); in handle_property_set_fd()
266 …ERROR("sys_prop: error waiting for uid=%d to send property message: %s\n", cr.uid, strerror(errno)… in handle_property_set_fd()
296 if (check_control_mac_perms(msg.value, source_ctx, &cr)) { in handle_property_set_fd()
300 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid); in handle_property_set_fd()
303 if (check_mac_perms(msg.name, source_ctx, &cr)) { in handle_property_set_fd()
307 cr.uid, msg.name); in handle_property_set_fd()