-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: apply new home directory rules to data copy (#13145)
* Apply new home directory rules to data copy * Cleanups and adding caching of home directories * optimizing home directory caching * Adding tests for new home directory behavior * improvements and enhancements to Get/SetSnapHomeDirs and tests * snapdata_test and copydata_test fixes * Adding tests/main/user-data-handling-homedirs/task.yaml It also performs the verification for the root user as well as the test user present in /home * Adding Mock functions for snapDataDirs and snapCommonDataDirs and creating unit tests * Adding data copy between revisions test to snapd-homedirs spread test This commit also deletes the test-snapd-sh snap files and the user-data-handling-homedirs spread test * Change return behavior of GetSnapHomeDirs to be more in line with other functions and TestDataHomeDirs rename and fixes * Adding unit tests and renaming GetSnapHomeDirs * Adding unit tests and doing some cleanups * go.sum cleanups * cleanups, globbing expressions and root directory improvements * more s.tempdir cleanups in unit tests, removing debug remnants * unit test fixups, dirs.go fixups, typo fixups * SetSnapHomeDirs optimizations, fixups and unit test improvements * make globs only accessible via DataHomeGlobs * fixups and conflict resolution * comment fixup * dirs.go fixups and improvements * tests/main/snapd-homedirs: revision improvements and spread fix * tests/main/snapd-homedirs: adding details section to fix static-checks * tests/main/snapd-homedirs-vendored: fixing AppArmor tunable check * tests/main/snapd-homedirs: reverting rev read to using snap list This fixes issues with FHS compliant distros such as arch linux where the /snap directory is located in /var/lib/snapd/snap * fixing comments, small dirs.go and homedirs.go improvements * dirs/dirs.go: SeSnapHomeDirs comment fixup
- Loading branch information
1 parent
8c247ea
commit a282087
Showing
19 changed files
with
583 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.