Repository navigation
Commit 63e46b9
exec: move the final allow_write_access/fput into free_bprm()
Both success/failure paths cleanup bprm->file, we can move this
code into free_bprm() to simlify and cleanup this logic.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 9e00cdb commit 63e46b9
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
1142 | 1141 | | |
1143 | | - | |
1144 | 1142 | | |
1145 | 1143 | | |
1146 | 1144 | | |
| |||
1172 | 1170 | | |
1173 | 1171 | | |
1174 | 1172 | | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1175 | 1177 | | |
1176 | 1178 | | |
1177 | 1179 | | |
| |||
1424 | 1426 | | |
1425 | 1427 | | |
1426 | 1428 | | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
1433 | 1429 | | |
1434 | 1430 | | |
1435 | 1431 | | |
| |||
1492 | 1488 | | |
1493 | 1489 | | |
1494 | 1490 | | |
1495 | | - | |
| 1491 | + | |
1496 | 1492 | | |
1497 | 1493 | | |
1498 | 1494 | | |
| |||
1539 | 1535 | | |
1540 | 1536 | | |
1541 | 1537 | | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | 1538 | | |
1549 | 1539 | | |
1550 | 1540 | | |
| |||
0 commit comments