Lines Matching refs:out
552 * @out: new style ipc permissions
555 * for returning to userspace (@out).
557 void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out)
559 out->key = in->key;
560 out->uid = from_kuid_munged(current_user_ns(), in->uid);
561 out->gid = from_kgid_munged(current_user_ns(), in->gid);
562 out->cuid = from_kuid_munged(current_user_ns(), in->cuid);
563 out->cgid = from_kgid_munged(current_user_ns(), in->cgid);
564 out->mode = in->mode;
565 out->seq = in->seq;
571 * @out: old style ipc permissions
574 * object and store it into the @out pointer.
576 void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)
578 out->key = in->key;
579 SET_UID(out->uid, in->uid);
580 SET_GID(out->gid, in->gid);
581 SET_UID(out->cuid, in->cuid);
582 SET_GID(out->cgid, in->cgid);
583 out->mode = in->mode;
584 out->seq = in->seq;
599 struct kern_ipc_perm *out;
602 out = idr_find(&ids->ipcs_idr, idx);
603 if (!out) {
607 return out;
623 struct kern_ipc_perm *out = ipc_obtain_object_idr(ids, id);
625 if (IS_ERR(out)) {
626 goto out;
629 if (ipc_checkid(out, id)) {
632 out:
633 return out;
658 * @out: the permission of the ipc to set.
660 int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)
668 out->uid = uid;
669 out->gid = gid;
670 out->mode = (out->mode & ~S_IRWXUGO) | (in->mode & S_IRWXUGO);
774 goto out;
785 out: