Commit 275498a
committed
exec: Add comments on check_unsafe_exec() fs counting
Add some comments about what the fs counting is doing in
check_unsafe_exec() and how it relates to the call graph.
Specifically, we can't force an unshare of the fs because
of at least Chrome:
https://lore.kernel.org/lkml/86CE201B-5632-4BB7-BCF6-7CB2C2895409@chromium.org/
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Link: https://lore.kernel.org/r/20221018071537.never.662-kees@kernel.org1 parent 23a7aea commit 275498a
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1576 | 1582 | | |
1577 | 1583 | | |
1578 | 1584 | | |
| |||
1753 | 1759 | | |
1754 | 1760 | | |
1755 | 1761 | | |
| 1762 | + | |
1756 | 1763 | | |
1757 | 1764 | | |
1758 | 1765 | | |
| |||
1811 | 1818 | | |
1812 | 1819 | | |
1813 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
1814 | 1826 | | |
1815 | 1827 | | |
1816 | 1828 | | |
| |||
0 commit comments