-x implementations

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Thu Mar 7 13:28:10 AEST 1991


In article <668288533.3106 at mindcraft.com> karish at mindcraft.com (Chuck Karish) writes:
> There is no system interface that simply and reliably provides the
> desired information.  The advice of the 1003.1 committee is not to try
> to guess whether access would be granted based on the permission bits,
> but to actually try the function or utility and see what happens.

One perfectly good solution would be to have an O_EXEC mode for open(),
and allow fexec() upon files open for O_EXEC. This would not break
anything, it would solve the race conditions and inaccuracies that
plague access(), and it would fit comfortably into current systems.

Too easy, huh?

---Dan



More information about the Comp.unix.programmer mailing list