]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub_fail: tighten up the security on the background systemd service
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:15 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:45:34 +0000 (18:45 -0700)
commit7f929f645c1379d7d38065b27b0a36d86f530c54
tree17f1e328557c36ee5de5f0db4fed89e9f6ff322d
parent9616a3497641213bd1d0e829e27557c55edb3762
xfs_scrub_fail: tighten up the security on the background systemd service

Currently, xfs_scrub_fail has to run with enough privileges to access
the journal contents for a given scrub run and to send a report via
email.  Minimize the risk of xfs_scrub_fail escaping its service
container or contaminating the rest of the system by using systemd's
sandboxing controls to prohibit as much access as possible.

The directives added by this patch were recommended by the command
'systemd-analyze security xfs_scrub_fail@.service' in systemd 249.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/xfs_scrub_fail@.service.in