Re: Reserving a syscall number
From: Chris Wright
Date: Wed Oct 27 2004 - 14:42:49 EST
* John Richard Moser (nigelenki@xxxxxxxxxxx) wrote:
> How would one go about having a specific syscall number reserved in
> entry.S? I'm exploring doing a kill inside the kernel from a detection
> done in userspace, which would allow the executable header of the binary
> to indicate whether the task should be killed or not; if it works, the
> changes will likely not go into mainline, but will still require a
> non-changing syscall index (assuming I understood the syscall manpage
> properly).
To reserve a syscall there needs to be some users and some eventual hope
of merging. The idea, btw, means anyone can specify the value in the
binary, so it could just as easily be done via prctl or something
similar that makes the out of tree patch easier to maintain. Although,
I don't actually see the value with the description above.
> On a side note, if a syscall doesn't exist, how would that be detected
> in userspace?
ENOSYS error.
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/