lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4A17BF10.4030604@pardus.org.tr>
Date:	Sat, 23 May 2009 12:17:04 +0300
From:	Ozan Çağlayan <ozan@...dus.org.tr>
To:	Kunsheng Chen <linux_kernel_chan@...oo.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: Why current->uid is not working in 2.6.29 ?

Kunsheng Chen wrote:
> 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.
>   
They were replaced by some other calls. For example the following is a
snippet which ports the old code to the new API:

-                      address, current->uid);
+                      address, current_uid());


The commit 1330deb0f6e89525c8e9fcbd6b13522c9243bfc0 is a good example of
what are the new replacements.

This is all that I know,

Ozan Caglayan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ