summaryrefslogtreecommitdiff
path: root/include/linux/parser.h
diff options
context:
space:
mode:
authorDomenico Andreoli <domenico.andreoli@linux.com>2020-03-23 08:22:15 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 10:36:34 +0200
commit285f25c97f24a91c0c9765dcb8ccfa67cb2fecc8 (patch)
treeb828ca25008ae7c8e122144dfd246d4e9a841f5e /include/linux/parser.h
parent4753b111f003f3c193d6313ffcd859424cc33c14 (diff)
hibernate: Allow uswsusp to write to swap
[ Upstream commit 56939e014a6c212b317414faa307029e2e80c3b9 ] 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 <domenico.andreoli@linux.com> Reported-by: Marian Klein <mkleinsoft@gmail.com> Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/parser.h')
0 files changed, 0 insertions, 0 deletions