56e2eab...
by
Paweł Stołowski
on 2018-06-07
Extra debug if an error is not retried.
433d60d...
by
Maciej Borzecki
on 2018-06-07
Merge pull request #5275 from bboozzoo/ bboozzoo/ use-mock- snap-current
cmd/snap: use snaptest. MockSnapCurrent in `snap run` tests
1e0d781...
by
Zygmunt Krynicki
on 2018-06-07
Merge pull request #5277 from zyga/feature/ is-readonly
cmd/snap-update-ns: add helper for checking for read-only filesystems
49199e5...
by
Zygmunt Krynicki
on 2018-06-07
cmd/snap-update-ns: add IsReadOnly and tests
This patch adds a simple helper that checks if a directory is read only
in a way that sandboxed processes cannot overcome. This will be used in
upcoming trespassing checks where attempts to write to read only
directories are honored as they trigger EROFS which is handled by the
construction of a writable mimic.
Signed-off-by: Zygmunt Krynicki <email address hidden>
1f8c70f...
by
Zygmunt Krynicki
on 2018-06-07
cmd/snap-update-ns: add support for testing using and testing fstatfs
This just glues syscall.Fstatfs to the mocking and testing logic.
Signed-off-by: Zygmunt Krynicki <email address hidden>
f3f01df...
by
Maciej Borzecki
on 2018-06-07
cmd/snap: use MockSnapCurrent in `snap run` tests
snaptests comes with a helper to mock a snap and add a 'current' symlink. Make
sure to use it in the tests.
Signed-off-by: Maciej Borzecki <email address hidden>
34f99f2...
by
Zygmunt Krynicki
on 2018-06-07
Merge pull request #5266 from anonymouse64/ ijohnson/ docker- interface- fix
interfaces/ builtin/ docker: use commonInterface over specific struct
e6e6a17...
by
Maciej Borzecki
on 2018-06-07
Merge pull request #5273 from zyga/feature/statfs
testutil: add test support for Fstatfs
9777158...
by
Zygmunt Krynicki
on 2018-06-06
testutil: add test support for Fstatfs
This patch adds a way to record and test fstatfs calls. This is needed
by the upcoming validation of path creation in snap-update-ns.
Signed-off-by: Zygmunt Krynicki <email address hidden>
a49ce5c...
by
Zygmunt Krynicki
on 2018-06-06
Merge pull request #5254 from zyga/feature/ kill-segments
cmd/snap-update-ns: discard the concept of segments