<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.1">
<TITLE>RE: Getting 'bad file number' error writing to device driver</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>> Thanks for the link; but this bit has to be set on the original executable.<BR>
> Is there any way a program in user mode can get around this or set the bit<BR>
> himself?<BR>
<BR>
Ummm...now that would be a security violation, don't you think? If a<BR>
program can elevate it's own privileges, then whats the point of<BR>
having access control! :)<BR>
<BR>
I think a user-space program will always need _some_ help from a<BR>
privileged user/program. Eg in the case of setuid, typically the root<BR>
user will be setting this bit (on a executable) so that an<BR>
unprivileged user can execute with temporarily elevated privileges.<BR>
<BR>
CMIIW.<BR>
<BR>
HTH,<BR>
-mandeep<BR>
<BR>
----------<BR>
Good point, Mandeep :)<BR>
Since I am doing security testing, I want to see if there is any way - security loopholes - especially in the Android environment (which runs a branch of Linux)<BR>
that a program can access the device driver.<BR>
Anil</FONT>
</P>
</BODY>
</HTML>