From: Daniel A. S. <da...@us...> - 2008-07-21 15:41:28
|
Hi Remigiusz, On 21/07/2008, at 17:28, Remigiusz Jan Andrzej Modrzejewski wrote: > I've just committed test suite for ::dtrace::exec. Now I have a a > question, how do I construct a constraint to check whether I'm root? I'm not sure you actually want a constraint that tests for root, what you really care about is whether you have tracing privileges, no? e.g. on Solaris, an ordinary user can have various privs that give access to more or less of dtrace: http://wikis.sun.com/display/DTrace/Security (on Mac OS X, you do indeed need to be root for any of these) it might be best to have four constraints for the different levels of privs possible. To construct them, the easiest and most portable way would probably be to try and do a [dtrace] operation that requires the given privileges level, or if you want to stay independent of the [dtrace] implementation, you could [exec] the dtrace(1) tool with an action that requires the given priv level. > And... Will you reveal the evaluation, please? I sent you the final eval via email on the 15th, 14:09 CEST (ccd to mentors), if you did not receive it let me know, I can resend it... Cheers, Daniel -- ** Daniel A. Steffen ** ** <mailto:da...@us...> ** |