mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kunsheng Chen <linux_kernel_chan@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Why current->uid is not working in 2.6.29 ?
Date: Fri, 22 May 2009 21:22:05 -0700 (PDT)	[thread overview]
Message-ID: <784636.43001.qm@web111109.mail.gq1.yahoo.com> (raw)


Hello everyone,

I am new to kernel module programming and got some problem while compiling some old kernel code. 

The
code is trying to get user id using current->uid,   but it is not
working by reminding me 'task_struct; doesn't contain field uid '.  

I checked the linux source code , uid is not there any more.

The 'current' is of task_struct, so could anyone tell me where is the new place for that uid ?


Thanks in advance,

-Kun  



      


             reply	other threads:[~2009-05-23  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-23  4:22 Kunsheng Chen [this message]
2009-05-23  9:17 ` Ozan Çağlayan

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=784636.43001.qm@web111109.mail.gq1.yahoo.com \
    --to=linux_kernel_chan@yahoo.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®