[OpenIndiana-discuss] Solaris privileges and seteuid()

Frank Lahm franklahm at gmail.com
Thu Aug 16 08:02:30 UTC 2012


2012/8/16 Mohamed Khalfella <khalfella at gmail.com>:
> First of all, I am not expert in Openindiana but if I were you I would try
> using dtrace to show which function get called in response to fchown
> syscall (I assume you are not running a highly loaded production system yet
> so we can enable fbt:::: safely)
>
> #!/usr/sbin/dtrace -s
> #pragma D option flowindent
>
> syscall::fchown:entry
> /execname == "EXECNAME"/
> {
>     self->follow = 1;
> }
>
> syscall::fchown:return
> {
>     self->follow = 0;
>     trace(arg1);
> }
>
> fbt:::entry
> /self->follow/
> {
> }
>
> fbt:::return
> /self->follow/
> {
>     trace(arg1);
> }

That sounds fun and instructive. I'll see what it gives. Thanks!
-f



More information about the OpenIndiana-discuss mailing list