3 Replies Latest reply: Dec 5, 2010 11:54 PM by user261308 RSS

    Weird value for cwd when deleting a dir in global zone

    user261308
      Hi Guys,

      Desc: running DTrace in global zone; checking for removal of dir.

      printf("%-20Y %-12s %5d %5d %6d %6d %s -> %s %s\n",
      walltimestamp, zonename, gid, uid, pid, ppid,
      curpsinfo->pr_psargs, self->tgt, cwd ) ;

      If I'm doing the delete in a 'local' zone eg my_zone, I get

      TIME ZONE GID UID PID PPID CMD -> TARGET CWD

      2010 Dec 2 11:36:33 my_zone 10 1009 21708 21680 rmdir xxdir -> xxdir /export/zones/my_zone/root/export/home/me

      which is correct.
      However, if I do the delete in the global zone I get

      2010 Dec 2 11:40:55 global 10 1001 22565 19567 rmdir xxdir -> xxdir /export/zones/other_zone/root/var/somedir/../../../../../home/me

      last field should just be /export/home/me ; see above.

      Can anyone explain why the path goes into a random local zone then back up to the global zone?

      Cheers
      Chris