Getting 'bad file number' error writing to device driver
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Thu Oct 20 00:48:27 EDT 2011
> Thanks for the link; but this bit has to be set on the original executable.
> Is there any way a program in user mode can get around this or set the bit
> himself?
Ummm...now that would be a security violation, don't you think? If a
program can elevate it's own privileges, then whats the point of
having access control! :)
I think a user-space program will always need _some_ help from a
privileged user/program. Eg in the case of setuid, typically the root
user will be setting this bit (on a executable) so that an
unprivileged user can execute with temporarily elevated privileges.
CMIIW.
HTH,
-mandeep
> Anil
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
More information about the Kernelnewbies
mailing list