summaryrefslogtreecommitdiff
path: root/osutil
AgeCommit message (Expand)Author
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
2019-06-06osutil: add EnsureTreeState helper, for synchronising a tree of directoriesJames Henstridge
2019-05-15Merge remote-tracking branch 'upstream/master' into use-builtin-lookup-userJohn R. Lenton
2019-05-03osutil: fix TestReadBuildGo test in sbuildMichael Vogt
2019-05-01Merge remote-tracking branch 'upstream/master' into use-builtin-lookup-userJamie Strandboge
2019-04-30osutil,cmdutil: move CommandFromCore and make it use the snapd snap (if avail...Michael Vogt
2019-04-29osutil: update tests to workaround hexstring build ID formatMaciej Borzecki
2019-04-29osutil: tweak build ID tests to account for too-old 'file'Maciej Borzecki
2019-04-29osutil: tweak ReadBuildID() commentMaciej Borzecki
2019-04-29osutil: log 'file' output in testMaciej Borzecki
2019-04-26osutil: add constants for {go,gnu}ElfNoteMichael Vogt
2019-04-26osutil: do not use `go tool builid` in the tests, it is only available since ...Michael Vogt
2019-04-26osutil: use go build-id when no gnu build-id is availableMichael Vogt
2019-04-24osutil: make IsValidUsername public and fix regexJamie Strandboge
2019-04-19osutil: now that we require golang-1.10, use user.LookupGroup()Jamie Strandboge
2019-04-15Merge pull request #6693 from bboozzoo/bboozzoo/tweak-internal-tool-cmdMichael Vogt
2019-04-10osutil: add helper for checking whether a path points to an executableMaciej Borzecki