LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2005, 08:36 AM   #1
drminix
LQ Newbie
 
Registered: May 2005
Location: Dunediin
Distribution: Fedora Core 3
Posts: 8

Rep: Reputation: 0
Modifying process descriptor in device driver


hi.

I have added the following code to modify the current process's euid in my device driver code.

current->euid = 0;

However, the above code does not seem to change euid of the current process. What am I doing wrong? I also want to know what current->fsuid holds.

Thanks in advance.
 
Old 06-12-2005, 01:28 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
only a process that has real user id of 0 can set it's effective uid to just any value
this should be done with the POSIX function
int seteuid(uid_t euid);

Linux only has real effective and saved user and group ids
so i have no idea what fsuid is

Last edited by foo_bar_foo; 06-12-2005 at 01:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Descriptor limit for a process akuate Linux - General 0 08-18-2004 12:23 PM
modifying wireless driver saajii Programming 2 05-15-2004 09:26 PM
using a socket descriptor opened by another process sudheernair Programming 0 04-16-2004 07:29 AM
Modifying the heap available to a process exitsfunnel Linux - Software 0 12-10-2003 10:20 PM
device driver rjc915 Programming 4 10-06-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration