~ted/ubuntu-app-launch/pids-tools-15.04

« back to all changes in this revision

Viewing changes to socket-demangler.c

  • Committer: CI Train Bot
  • Author(s): Ted Gould
  • Date: 2015-08-17 21:38:10 UTC
  • mfrom: (200.2.3 tweaks-and-cleanups)
  • Revision ID: ci-train-bot@canonical.com-20150817213810-xl8my862t0am1t2n
Make demangler path more secure and unset internal environment variables
Approved by: Charles Kerr, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
 
121
121
        g_free(mirsocketbuf);
122
122
 
 
123
        /* Don't let people guess about these */
 
124
        g_unsetenv("UBUNTU_APP_LAUNCH_DEMANGLE_NAME");
 
125
        g_unsetenv("UBUNTU_APP_LAUNCH_DEMANGLE_PATH");
 
126
 
123
127
        return execvp(argv[1], argv + 1);
124
128
}