Fix panic triggered by code like this:
open("/dev/md0", O_EXEC);
Differential D3051
Don't panic on opening a GEOM node with O_EXEC. trasz on Jul 11 2015, 11:37 AM. Authored by Tags None Referenced Files
Subscribers
Details
Fix panic triggered by code like this: open("/dev/md0", O_EXEC);
Diff Detail
Event TimelineComment Actions Same as for close, I am not sure it is proper place to check it here. May be we are incorrectly handling some POSIX flags semantics when handling open syscall. Comment Actions If we are sure that no devfs nodes should be opened with O_EXEC, then devfs would be reasonable place for the check. Otherwise, geom, which cannot handle the request, should plug the case. I cannot provide an easy example for the O_EXEC open of the devfs node. Might be, in-place execution from ROM is the suitable use case. If so, your patch is fine. |