Repository navigation
Commit 19bca4c
authored
Pass the exported blacklist to mintupdate-automation on stdin (#1096)
* Pass the exported blacklist to mintupdate-automation on stdin
Exporting the blacklist wrote it to /tmp/mintUpdate/blacklist, then
mintupdate-automation read that path as root after pkexec authentication.
Another local user can replace the file (or plant a symlink) while the
authentication dialog is open, so root appended arbitrary lines or the
contents of any file, e.g. /etc/shadow, to world-readable
/etc/mintupdate.blacklist.
Pipe the blacklist to the helper on stdin instead.
* Remove accidentally committed .pyc file
---------
Co-authored-by: lbellows <19894143+lbellows@users.noreply.github.com>1 parent 82c61f0 commit 19bca4c
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | | - | |
219 | 217 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 218 | + | |
| 219 | + | |
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
| |||
0 commit comments