Commit 3c52d45
committed
trace2: redact URLs in alias events
trace2_cmd_alias_fl() passes its argument array directly to the targets.
A URL embedded in an ordinary alias definition, or passed through a
shell alias, can therefore appear in an alias event without the
redaction used for start, child_start, and exec events.
Redact the arguments before alias-event dispatch and release the
temporary array afterward.
Signed-off-by: Taylor Blau <ttaylorr@openai.com>1 parent 7ce7828 commit 3c52d45
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
410 | 417 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
563 | 564 | | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| 569 | + | |
| 570 | + | |
568 | 571 | | |
569 | 572 | | |
570 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
571 | 576 | | |
572 | 577 | | |
573 | 578 | | |
| |||
0 commit comments