From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261684AbUEAOCU (ORCPT ); Sat, 1 May 2004 10:02:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261982AbUEAOCU (ORCPT ); Sat, 1 May 2004 10:02:20 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:48336 "EHLO out2.smtp.messagingengine.com") by vger.kernel.org with ESMTP id S261684AbUEAOCS convert rfc822-to-8bit (ORCPT ); Sat, 1 May 2004 10:02:18 -0400 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.3 (F2.71; T1.001; A1.60; B2.21; Q2.21) From: project8sem4@fastmail.fm To: linux-kernel@vger.kernel.org Date: Sat, 01 May 2004 07:02:17 -0700 X-Sasl-Enc: 4pCbE3kJzfkbjoIM6o0nAA 1083420137 Message-Id: <1083420137.25908.185461132@webmail.messagingengine.com> Subject: wierd current->uid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org hi i am doing a project on a very simple system call interception module. the module is supposed to return the uid of the user who made the call to the syscall. i m trying to do it thus: //in the kernel module asmlinkage long my_syscall(arg1,arg2) { sprintf(buffer, "%s%s%i", arg1,arg2,current->uid); //this buffer is later read. return original_syscall(arg1,arg2); } the problem is that the uid returned is always -1. i found you had a similar problem very long back and had posted a msg on a mailing list. could you suggest a way out please. thanx -kt -- http://www.fastmail.fm - Same, same, but different…