need fexecve

Issue #88 resolved
Garrett D'Amore repo owner created an issue

POSIX 2008 / XPG7 require fexecve(), which provides a file descriptor as its first argument, instead of a path.

Note the following considerations:

  • While Linux uses /proc/$$/fd/<fd>, we cannot -- because /proc grabs locks, and attempts to make this work result in deadlock.
  • So a syscall looks best
  • However, we can write /proc/$$/fd/<fd> in the uarea as the system image. This will facilitate post mortem analysis in the event of a crash.
  • We should take care not to exec() the file appears to be in extended attribute space.

Comments (3)

  1. Log in to comment