Commit Graph

  • d5fb047a45 fixes lp:1447563 John R. Lenton 2015-04-23 12:20:03 +01:00
  • 25a20f6c4f return an error instead of panic'ing when encountering an invalid file mode John R. Lenton 2015-04-23 12:19:42 +01:00
  • 2b70bc4677 support symlinks on unpack John R. Lenton 2015-04-23 12:12:32 +01:00
  • a319c54d54 add copyright headers Michael Vogt 2015-04-23 12:20:17 +02:00
  • ec02c6c071 add COPYING, remove debian/dirs, its unneeded Michael Vogt 2015-04-23 11:50:12 +02:00
  • 7320a25c67 debian/control: Vcs->Vcs-Bzr, thanks pitti Michael Vogt 2015-04-23 11:45:37 +02:00
  • 56a431982b releasing package ubuntu-snappy version 1.0-0ubuntu1 1.0-0ubuntu1 Michael Vogt 2015-04-23 11:09:34 +02:00
  • e995171fda 15.04 upload to the archive Michael Vogt 2015-04-23 11:05:55 +02:00
  • 9d47b81d4d Added SNAPP_NAME, _FULLNAME, and _ORIGIN to environs of hooks, services and binaries. by chipaca approved by mvo John R. Lenton 2015-04-23 02:32:20 -04:00
  • 00d5fff1d1 - machanisms -> mechanisms - immmutable -> immutable - change <code> markdown (pandoc doesn't know about ```yaml) - re-flow comments to wrap nicely by dholbach approved by chipaca Daniel Holbach 2015-04-22 17:22:07 -04:00
  • 7c8841f4aa small code cleanup John R. Lenton 2015-04-22 22:19:23 +01:00
  • 7394c87712 added SNAPP_NAME, _FULLNAME, and _ORIGIN to environs everywhere John R. Lenton 2015-04-22 22:13:25 +01:00
  • 3b7a2c84d5 * on remove of an active snap, remove .additional files. * on remove of an active snap, remove udev hwassign files. * on remove of the last version of a snap, remove its directory. by chipaca approved by mvo John R. Lenton 2015-04-22 17:02:44 -04:00
  • 6d743f8f22 created RemoveAllHWAccess to clean the hwaccess files; call it on remove if the snap being removed is active. John R. Lenton 2015-04-22 21:07:05 +01:00
  • 2313acaf3d added read_path to json.additional by chipaca approved by mvo Michael Vogt 2015-04-22 15:32:20 -04:00
  • fed71b79d1 * src/main.c: - update json.additional needle to match update in lp:~mvo/snappy/additional-json-additional-addition/+merge/257163 Michael Vogt 2015-04-22 21:29:38 +02:00
  • 80237a61d8 snappy/oem.go: add new read_path here too Michael Vogt 2015-04-22 21:24:03 +02:00
  • 0e7b9e6e2d merged lp:snappy Michael Vogt 2015-04-22 21:21:54 +02:00
  • 2ed3399f08 added read_path to json.additional John R. Lenton 2015-04-22 19:53:34 +01:00
  • d5f2d37fd2 Add $PartID.json.additional apparmor files on OEM hardware assign installs. by mvo approved by jdstrand,sergiusens Michael Vogt 2015-04-22 14:52:08 -04:00
  • 9ef5798830 merged lp:~tyhicks/ubuntu-core-launcher/close-fd that fixes a FD leak, many thanks Tyler! Michael Vogt 2015-04-22 18:40:45 +02:00
  • cdbbeb5859 Short reads aren't acceptable since we need to match against the entire needle, anyways. Also, the content buffer is unitialized so we must ensure the read fills all of it or we can't be sure what we're matching against. Tyler Hicks 2015-04-22 11:17:11 -05:00
  • 2f34c5b988 Be explicit about the file being opened read-only and do close-on-exec Tyler Hicks 2015-04-22 11:08:50 -05:00
  • ea1ef25b9e Don't leak the fd to the application being launched Tyler Hicks 2015-04-22 11:08:21 -05:00
  • fe8783baf3 releasing package ubuntu-core-launcher version 0.2.13 0.2.13 Michael Vogt 2015-04-22 17:34:04 +02:00
  • b5a3173315 only setup the device cgroup if the snap has unrestricted access to /dev from apparmor via a appname specific .json.additional file Michael Vogt 2015-04-22 17:32:05 +02:00
  • e20be72705 fix wording Daniel Holbach 2015-04-22 17:15:03 +02:00
  • 907dd3116b snappy/oem.go: remove leftover debug Michael Vogt 2015-04-22 16:48:28 +02:00
  • 95ec0f9e93 merged lp:snappy and resolved conflicts Michael Vogt 2015-04-22 16:41:39 +02:00
  • ea33a86469 - machanisms -> mechanisms - immmutable -> immutable - change <code> markdown (pandoc doesn't know about ```yaml) - re-flow comments to wrap nicely Daniel Holbach 2015-04-22 16:24:43 +02:00
  • 54d5db0223 address review comments Michael Vogt 2015-04-22 16:07:48 +02:00
  • c10e60f1c4 - fix small typos - use <code> for configuration keywords - it’s → its - break large sentence into two - italicise Note:/Caution: by dholbach approved by chipaca Daniel Holbach 2015-04-22 10:02:28 -04:00
  • 97920c8e39 fix small typos, use <code> for configuration keywords Daniel Holbach 2015-04-22 15:42:03 +02:00
  • 4e876fd860 it’s → its, break one sentence into two, italicise Note:/Caution: Daniel Holbach 2015-04-22 15:33:45 +02:00
  • 9fbd6e8c55 - fix markdown syntax: use of <pre> for stdout messages or demonstration of file syntax, fix items of unordered list - fix typos: "as follow" → "as follows", "empy" → "empty" by dholbach approved by sergiusens Daniel Holbach 2015-04-22 09:32:31 -04:00
  • e610575c0c markdown markup fixes (<pre> in <li>, 'Note:' in italics, lower-case frameworks - it's not a product name or anything Daniel Holbach 2015-04-22 15:18:38 +02:00
  • bc00d9edbd Fix static hw-assign command by also adding a matching udev rule by mvo approved by chipaca,sergiusens Michael Vogt 2015-04-22 09:12:04 -04:00
  • 64c70c7bd7 fix markdown syntax: use of <pre> for stdout messages or demonstration of file syntax, fix items of unordered list Daniel Holbach 2015-04-22 15:08:08 +02:00
  • ce4c3f414e merged lp:~mvo/ubuntu-core-launcher/only-enable-device-cgroup-if-has-entries 0.2.12 Michael Vogt 2015-04-22 15:00:38 +02:00
  • 929244fd97 add missing tests Michael Vogt 2015-04-22 14:55:07 +02:00
  • fb3936d141 generate static $PartID.additional.json for OEM hardware assign to allow making /dev protected by default in apparmor again Michael Vogt 2015-04-22 14:45:48 +02:00
  • 045ff9e28a Use a null progressbar if not on a terminal. by jamesodhunt approved by chipaca James Hunt 2015-04-22 08:42:13 -04:00
  • 4c6d47bef3 * Reset attachedToTerminal() using defer. James Hunt 2015-04-22 11:46:52 +01:00
  • 23861e13d3 * Sync with lp:snappy. James Hunt 2015-04-22 11:44:47 +01:00
  • 1158894228 * Remove(): Use passed-in meter. James Hunt 2015-04-22 11:43:13 +01:00
  • e71d08f9be * TestMakeProgressBar(): reset attachedToTerminal(). James Hunt 2015-04-22 11:38:14 +01:00
  • 7d28fce629 * Removed invalid test. James Hunt 2015-04-22 11:35:09 +01:00
  • 724eda3497 * Removed now unused native directory. James Hunt 2015-04-22 11:32:54 +01:00
  • 10fd6867be Make Stop and StopPost use the launcher. by chipaca approved by mvo John R. Lenton 2015-04-22 06:32:16 -04:00
  • fc15adb594 * Remove stray test import. James Hunt 2015-04-22 11:31:50 +01:00
  • 45c042f895 * Sync with lp:snappy. James Hunt 2015-04-22 11:30:52 +01:00
  • 14c6b4f491 made ExecStop & StopPost also use the launcher, as they should. John R. Lenton 2015-04-22 10:33:25 +01:00
  • ff4988eceb only setup device cgroup if there is a matching udev device Michael Vogt 2015-04-22 11:32:48 +02:00
  • 1e6abdd597 releasing package ubuntu-core-launcher version 0.2.11 0.2.11 Michael Vogt 2015-04-22 11:14:33 +02:00
  • 9eeb8aec2e merged lp:~tyhicks/ubuntu-core-launcher/fixes, many thanks Michael Vogt 2015-04-22 11:13:40 +02:00
  • 3060929216 add tests for hwassign udev work Michael Vogt 2015-04-22 11:06:36 +02:00
  • 2043adf4e4 Use "sudo" in the wall shutdown message by mvo approved by chipaca Michael Vogt 2015-04-22 04:32:13 -04:00
  • 8081b9745a merged lp:snappy Michael Vogt 2015-04-22 10:27:20 +02:00
  • a7b8c0f087 Add missing checks for m.Type == SnapTypeOem as OEM packages are now without namespace. by mvo approved by chipaca Michael Vogt 2015-04-22 04:22:05 -04:00
  • f108198180 cmd/snappy/cmd_update.go: use "sudo shutdown -c" in the wall message Michael Vogt 2015-04-22 10:08:46 +02:00
  • 049d686271 Declaring a conflicts agains snappy for ubuntu-snappy-cli by sergiusens approved by vorlon Sergio Schvezov 2015-04-22 04:04:15 -04:00
  • 64387dedce Ensure snapUdevRulesDir is available. by mvo approved by chipaca Michael Vogt 2015-04-22 04:02:31 -04:00
  • 9dd12efeda initial implementation of udev/cgroup support for hwassign Michael Vogt 2015-04-22 09:58:04 +02:00
  • 79791df308 snappy/security.go: SnapTypeOem is also namespaceless Michael Vogt 2015-04-22 09:11:43 +02:00
  • 689f350fb9 snappy/security.go: ensure we have the snapSeccompDir Michael Vogt 2015-04-22 09:11:22 +02:00
  • 51d63849f5 releasing package ubuntu-core-launcher version 0.2.10 0.2.10 Michael Vogt 2015-04-22 09:04:29 +02:00
  • 6518c2fbef add "/run/udev/** rw," to the ubuntu-core-launcher aa-profile to fix the hwassign Michael Vogt 2015-04-22 09:02:51 +02:00
  • b75c3e9124 snappy/oem.go: ensure snapUdevRulesDir is available before writing the rules file Michael Vogt 2015-04-22 08:12:55 +02:00
  • 37dba02bde Ensure that each seccomp filter line is entirely read Tyler Hicks 2015-04-21 19:44:52 -05:00
  • 5e3fdc24cd Buffered I/O must be flushed to be sure that the write was successful Tyler Hicks 2015-04-21 18:22:13 -05:00
  • 22738808f8 Declaring a conflicts against snappy Sergio Schvezov 2015-04-21 19:02:02 -03:00
  • ff9a6e02ee releasing package ubuntu-core-launcher version 0.2.9 0.2.9 Michael Vogt 2015-04-21 21:49:09 +02:00
  • 8ed3bd5d3d merged lp:~jdstrand/ubuntu-core-launcher/ubuntu-core-launcher.aa-profile Michael Vogt 2015-04-21 21:48:39 +02:00
  • 18a306d361 merge from trunk Jamie Strandboge 2015-04-21 14:21:55 -05:00
  • d419cefad8 add apparmor profile for ubuntu-core-launcher Jamie Strandboge 2015-04-21 14:14:53 -05:00
  • 125ba4c719 releasing package ubuntu-core-launcher version 0.2.8 0.2.8 Michael Vogt 2015-04-21 21:02:39 +02:00
  • 4c503f286d * Sync with lp:snappy. James Hunt 2015-04-21 17:42:44 +01:00
  • c8901757d1 Snappy autopilot automatic reboot support by sergiusens approved by chipaca Sergio Schvezov 2015-04-21 12:32:19 -04:00
  • 4f15858176 check len instead of for nil Sergio Schvezov 2015-04-21 13:00:36 -03:00
  • 5f04cecad7 * Comments. James Hunt 2015-04-21 16:55:57 +01:00
  • df894acf1b * Review changes: moved MakeProgressBar() to progress/. James Hunt 2015-04-21 16:52:02 +01:00
  • 6fc1156c67 src/main.c: document why we do not do setgroups() Michael Vogt 2015-04-21 17:42:26 +02:00
  • fd1f53cd72 * Sync with lp:snappy. James Hunt 2015-04-21 16:40:31 +01:00
  • 3ab38515fc src/seccomp.c: clarify why its ok to ignore syscall_nr == __NR_SCMP_ERROR errors Michael Vogt 2015-04-21 17:39:38 +02:00
  • 122b288455 use the shutdown command instead Sergio Schvezov 2015-04-21 12:28:04 -03:00
  • b6b1da5cf0 * "go fmt". James Hunt 2015-04-21 15:58:06 +01:00
  • 1d0faded21 * provisioning/provisioning.go: SideLoadedSystem(): Assume sideloaded if the yaml exists but isn't parseable. * provisioning/provisioning_test.go: Enable tests after moving to the provisioning package. * Test tidy-up. James Hunt 2015-04-21 15:57:19 +01:00
  • ff87b4dfba Automatic reboot to support autopilot Sergio Schvezov 2015-04-21 11:41:47 -03:00
  • 9da5d5cd15 add path validation Michael Vogt 2015-04-21 16:25:06 +02:00
  • 0dee28d2da * Make remove understand and work with namespaces, like purge. * Update FindSnapBynameAndVersion because that is no longer unique. by chipaca approved by mvo John R. Lenton 2015-04-21 10:22:07 -04:00
  • b1400d8f1b * Put provisioning code into its own package. James Hunt 2015-04-21 14:52:58 +01:00
  • 35b385c04b * Sync with lp:snappy. James Hunt 2015-04-21 14:48:55 +01:00
  • 80054b58a8 merged with trunk John R. Lenton 2015-04-21 14:44:23 +01:00
  • 40d4b24c74 Prevent installation of oem packages that are not updates. by sergiusens approved by chipaca Sergio Schvezov 2015-04-21 09:42:07 -04:00
  • f45a7090a5 Taking into account the oem snap Sergio Schvezov 2015-04-21 10:34:32 -03:00
  • 3183ddb893 Merging trunk Sergio Schvezov 2015-04-21 10:33:21 -03:00
  • e1ca341287 * Added test for MakeProgressBar(). James Hunt 2015-04-21 14:26:50 +01:00
  • 7ebbe4fa94 don't discriminate oem snaps, they are just like everyone else! Sergio Schvezov 2015-04-21 10:21:59 -03:00
  • 7e9bb4132e . is a valid character in a package name, even if we disallow it during install John R. Lenton 2015-04-21 14:09:13 +01:00
  • 4de3829fa5 * Replace duplicated progress-bar creation code with a new helpers.MakeProgressBar(). James Hunt 2015-04-21 14:08:24 +01:00