summaryrefslogtreecommitdiff
path: root/osutil
AgeCommit message (Expand)Author
2019-09-30osutil: test stream equality differing by tail onlyZygmunt Krynicki
2019-09-27osutil: rename MemoryBlob -> MemoryFileStateZygmunt Krynicki
2019-09-27osutil: rename FileContentReference -> FileReferencePlusModeZygmunt Krynicki
2019-09-27osutil: use _test package for cmp_test.goZygmunt Krynicki
2019-09-27osutil: remove duplicated testZygmunt Krynicki
2019-09-27osutil: remove StreamEqual, replaced by streamsEqualChunkedZygmunt Krynicki
2019-09-27osutil: implement StreamEqual with streamsEqualChunkedZygmunt Krynicki
2019-09-27osutil: provide non-empty buffer for same-reader testZygmunt Krynicki
2019-09-27osutil: a stream is equal to itselfZygmunt Krynicki
2019-09-27osutil: add streamsEqualChunked and filesAreEqualChunkedZygmunt Krynicki
2019-09-27osutil: drop error return path from StreamEqualZygmunt Krynicki
2019-09-27osutil: move StreamEqual to cmp.goZygmunt Krynicki
2019-09-27osutil: generalize SyncDir with FileState interfaceZygmunt Krynicki
2019-08-31osutil: make flock test more robustZygmunt Krynicki
2019-08-22squashfs: rename useFuse to NeedsFuse consistentlyMichael Vogt
2019-08-21sanity: report proper errror when fuse is needed but not availableMichael Vogt
2019-08-19perform osutil.LookPathDefault in user_test.go and check_snap_test.goJamie Strandboge
2019-08-19also remove mockUserAdd, mockGroupAdd/Del from createUserSuiteJamie Strandboge
2019-08-19s/createUserSuite/ensureUserSuite/ for new user tests. Thanks mvoJamie Strandboge
2019-08-16Merge branch 'mvo.7265' into snapd-users-phase0.25-5-create-snap-daemon-userJamie Strandboge
2019-08-16osutil: improve getent handling and doc stringsMichael Vogt
2019-08-16Merge branch 'mvo.7265' into snapd-users-phase0.25-5-create-snap-daemon-userJamie Strandboge
2019-08-16osutil: improve comments around osutil.Find{Uid,Gid} (thanks to jdstrand)Michael Vogt
2019-08-16adjust EnsureUserGroup() to use IsUnknownUser/Group helpers. Thanks mvoJamie Strandboge
2019-08-16osutil: add IsUnknownUser()/IsUnknownGroup() helpers. Thanks mvoJamie Strandboge
2019-08-16adjust user_test.go for last commitJamie Strandboge
2019-08-16Merge branch 'mvo.7265' into snapd-users-phase0.25-5-create-snap-daemon-userJamie Strandboge
2019-08-16osutil: refactor find{Uid,Gid}WithGetentFallback and add more testsMichael Vogt
2019-08-16osutil: use "gid" var name in group id related testsMichael Vogt
2019-08-16osutil: unify osutil.Find{Uid,Gid} with automatic getent fallbackMichael Vogt
2019-08-16osutil: add test for getent() malformed entriesMichael Vogt
2019-08-16osutil: check exit code when running getent and add testsMichael Vogt
2019-08-16osutil: add FindUidGetent() and FindGidGetent()Jamie Strandboge
2019-08-16add osutil/group_test.goJamie Strandboge
2019-08-16osutil: add test for getent() malformed entriesMichael Vogt
2019-08-16osutil: check exit code when running getent and add testsMichael Vogt
2019-08-15osutil: run groupdel on useradd fail when extrausers is not specifiedJamie Strandboge
2019-08-15osutil: adjust EnsureUserGroup to use Find[UG]idGetent() and add testsJamie Strandboge
2019-08-15osutil: add FindUidGetent() and FindGidGetent()Jamie Strandboge
2019-08-15add osutil/group_test.goJamie Strandboge
2019-08-15move uid/gid checks to osutil.EnsureUserGroup(). Thanks to pedronisJamie Strandboge
2019-08-14Merge branch 'snapd-users-phase0.25-4-seccomp-must-support-system-usernames' ...Jamie Strandboge
2019-07-30osutil: wait for helper goroutine to finish in RunWithContext()Maciej Borzecki
2019-07-23Merge pull request #6959 from jhenstridge/ensure-tree-stateZygmunt Krynicki
2019-07-23osutil: update comment as requested in review.James Henstridge
2019-07-22osutil/user.go: add UserGroupAdd()Jamie Strandboge
2019-07-12osutil: add sanity checks to EnsureTreeState, and delete files on errorJames Henstridge
2019-06-13osutil: add a workaround for overlayfs apparmor as it is used on ManjaroZygmunt Krynicki
2019-06-06osutil: add documentation for EnsureTreeStateJames Henstridge
2019-06-06osutil: make EnsureTreeState remove empty directoriesJames Henstridge