This PR adds validation that preopens cannot be closed nor renumbered, and that preopens cannot be opened by the host after the guest has opened its own files.
I also modified the mechanism for testing whether a file is a propen to compare the fd number to the highest preopen number (+1), and changed the fields of fdinfo to be unexported (since the type is unexported as well).
This PR adds validation that preopens cannot be closed nor renumbered, and that preopens cannot be opened by the host after the guest has opened its own files.
I also modified the mechanism for testing whether a file is a propen to compare the fd number to the highest preopen number (+1), and changed the fields of
fdinfo
to be unexported (since the type is unexported as well).Let me know if anything should be changed!