Commit 62d492d
committed
repo: ensure that repo dir is owned by current user
Ensure that the repository directory is owned by the current user; this
prevents us from opening configuration files that may have been created
by an attacker.1 parent 973d959 commit 62d492d
2 files changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
485 | 502 | | |
486 | 503 | | |
487 | 504 | | |
| |||
855 | 872 | | |
856 | 873 | | |
857 | 874 | | |
| 875 | + | |
858 | 876 | | |
859 | 877 | | |
860 | 878 | | |
| |||
903 | 921 | | |
904 | 922 | | |
905 | 923 | | |
906 | | - | |
| 924 | + | |
907 | 925 | | |
908 | | - | |
909 | | - | |
| 926 | + | |
910 | 927 | | |
911 | 928 | | |
912 | 929 | | |
913 | 930 | | |
914 | 931 | | |
915 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
916 | 941 | | |
917 | 942 | | |
918 | 943 | | |
| |||
0 commit comments