2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-29 23:20:49 +00:00
restic/internal
Andrew Gunnerson 8c02ebb029
Add support for extended attributes on symlinks
Linux allows the use of non-`user.` extended attributes on symlinks. One
of the main users of this functionality is SELinux's `security.selinux`
xattr for storing a path's label. By storing symlink xattrs, restic is
now suitable for backing up the root filesystem on Linux distributions
that use SELinux.

This commit adds support for symlink xattrs when backing up data,
restoring data, and mounting snapshots via a fuse mount. All calls to
the xattr library have been updated to the use `L` variants of the
various functions, which always operate on the path given, without
following symlinks.

Fixes: #4375

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
2023-06-19 14:37:31 -04:00
..
archiver test: use parameter instead of hardcoded constant 2023-05-18 21:17:53 +02:00
backend s3: restore retries for minio tests 2023-06-17 15:25:08 +02:00
bloblru bloblru: Upgrade to hashicorp/golang-lru/v2 2022-11-27 17:18:13 +01:00
cache Merge pull request #4343 from greatroar/cache 2023-06-02 22:41:17 +02:00
checker check: Fix flaky TestCheckerModifiedData 2023-05-01 17:18:19 +02:00
crypto Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
debug Rename unused testing parameter to _ 2023-05-18 21:17:53 +02:00
dump dump: Report filename with tar.ErrFieldTooLong 2023-04-27 11:45:41 +02:00
errors errors: Drop WithMessage 2022-10-14 14:06:47 +02:00
filter remove no longer necessary conditional compiles 2022-11-27 13:18:44 +01:00
fs Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
fuse Add support for extended attributes on symlinks 2023-06-19 14:37:31 -04:00
hashing Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
index index: add basic hat test 2023-06-16 23:12:30 +02:00
migrations Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00
options backend, options: Prefer strings.Cut to SplitN 2022-12-02 19:19:14 +01:00
pack repository: optimize MasterIndex.Each 2022-09-24 12:21:59 +02:00
repository Merge pull request #4353 from MichaelEischer/tune-gc 2023-06-16 23:24:39 +02:00
restic Add support for extended attributes on symlinks 2023-06-19 14:37:31 -04:00
restorer Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
selfupdate Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
test test: use standard logging methods from testing for the test helpers 2023-05-26 19:34:57 +02:00
textfile Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
ui restore: More descriptive field names for the JSON output 2023-06-09 12:07:55 +02:00
walker Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00