diff options
author | Domenico Andreoli <[email protected]> | 2020-03-23 08:22:15 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2020-03-23 08:22:15 -0700 |
commit | 56939e014a6c212b317414faa307029e2e80c3b9 (patch) | |
tree | 62a198ce3602ceda172890a2a17c8001624a29f8 /scripts/bpf_helpers_doc.py | |
parent | 98d54f81e36ba3bf92172791eba5ca5bd813989b (diff) |
hibernate: Allow uswsusp to write to swap
It turns out that there is one use case for programs being able to
write to swap devices, and that is the userspace hibernation code.
Quick fix: disable the S_SWAPFILE check if hibernation is configured.
Fixes: dc617f29dbe5 ("vfs: don't allow writes to swap files")
Reported-by: Domenico Andreoli <[email protected]>
Reported-by: Marian Klein <[email protected]>
Signed-off-by: Domenico Andreoli <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions