mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: "Khachaturov, Vassilii" <Vassilii.Khachaturov@comverse.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: uid_t and gid_t vs.  __kernel_uid_t and __kernel_gid_t
Date: Mon, 14 May 2001 21:14:26 MET-1	[thread overview]
Message-ID: <2E927786773@vcnet.vc.cvut.cz> (raw)

On 14 May 01 at 15:00, Khachaturov, Vassilii wrote:

> I had to communicate uid/gid from an application down 
> to a driver, and discovered that uid and gid in user
> space are different from those in kernel space.

ncpfs uses 'unsigned long' in its ncp_mount_data_v4, as MIPS uses
'long' type for uid/gid. Unfortunately it still needs conversions
on some archs, so maybe using u_int64_t is just best solution
(AFAIK as MIPS unsigned long is 64bit, you have to use u_int64_t
if you want same type accross architectures).

Kernel part then just checks wheter uid == (__kernel_uid_t)uid and 
gives up if they differ.
                                    Best regards,
                                        Petr Vandrovec
                                        vandrove@vc.cvut.cz

             reply	other threads:[~2001-05-14 19:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-14 21:14 Petr Vandrovec [this message]
2001-05-16  4:33 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2001-05-14 19:37 Khachaturov, Vassilii
2001-05-14 19:49 ` Chris Wing
2001-05-14 19:27 Chris Wing
2001-05-14 19:00 Khachaturov, Vassilii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2E927786773@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=Vassilii.Khachaturov@comverse.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®