This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hien Nguyen <hien@us.ibm.com> writes:
> - execl("/sbin/insmod", "insmod", modname, buf, NULL);
> + char cmd[2048];
> + sprintf(cmd, "/sbin/insmod %s %s", modname, buf);
> + execl("/bin/sh", "sh", "-c", cmd, NULL);
> [...]
I don't think systemtap would have any use for this option.
Regardless, it would be nice to stay away from something as insecure
as system() (or its equivalent being used here) for those extra args.
- FChE
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |