Nicolas Williams wrote:
On Mon, Aug 24, 2009 at 07:14:03AM -0500, Nicolas Williams wrote:
On Mon, Aug 24, 2009 at 10:28:27AM +0100, Darren J Moffat wrote:
The concept is very much needed. I like the environment variable override and particularly the per command override.

So now we potentially have three wrapper scripts around a given program:

1) Select the version
2) Select the "best optimised version" (not just 32 vs 64)
3) Run with different creds (pfexec)

So how do we start /usr/bin/foo if all three are needed ?

pfexec verexec isaexec /usr/bin/foo
pfexec isaexec verexec /usr/bin/foo
...
Whichever one isn't expected to be last would have to be aware of the
others.

Oh, also, pfexec is not an argv[0] interposer (I stole your term
shamelessly).  So as long as the original path is in exec_attr it
doesn't matter.

Right, but that was my point, order does mater here and it needs to be /usr/bin/foo that is in exec_attr(4) and pfexec needs to come first.

I expect things will naturally work out that most of the time.

--
Darren J Moffat
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to