Commit Graph

  • 4a56cdd03a * Sync with lp:snappy. James Hunt 2015-03-31 09:15:04 +01:00
  • adf5c8f52c fix parsing the SecurityDefinitions from yaml and add missing tests Michael Vogt 2015-03-31 08:43:37 +02:00
  • 443db558bb Remove bad print Sergio Schvezov 2015-03-30 22:40:26 -03:00
  • 20ff8b2d20 Allow specifying a different output directory when building Sergio Schvezov 2015-03-30 22:02:43 -03:00
  • 9445087c66 Provide a better help message for the build command. Sergio Schvezov 2015-03-30 21:40:50 -03:00
  • 451fd514b3 fix typo in docs/frameworks.md Jamie Strandboge 2015-03-30 17:19:01 -05:00
  • 23cac8b23b Check for uid and gid taking into account out of band installs Sergio Schvezov 2015-03-30 17:50:26 -03:00
  • 7eb4f1ff31 Remove unused debug variable. by jamesodhunt approved by mvo James Hunt 2015-03-30 14:31:53 -04:00
  • feabe3ed2c cleanup xzPipeWriter Michael Vogt 2015-03-30 19:17:02 +02:00
  • dd20f43761 Don't include filename+line number unless logging levels ERROR and above. by jamesodhunt approved by chipaca James Hunt 2015-03-30 13:11:43 -04:00
  • 521d687345 Don't configure on install if the positional argument is empty by sergiusens approved by mvo Sergio Schvezov 2015-03-30 11:41:40 -04:00
  • 40e94d6644 Omiting config setup if empty Sergio Schvezov 2015-03-30 12:28:12 -03:00
  • 18d406f700 * Remove unused debug variable. James Hunt 2015-03-30 15:56:46 +01:00
  • e28c000ed9 etc/grub.d/09_snappy: Make executable to stop grub ignoring it. by jamesodhunt approved by mvo James Hunt 2015-03-30 10:51:42 -04:00
  • d31f7e50e5 * etc/grub.d/09_snappy: - Set snappy_stamp rather than relying on recordfail (since that sets timeout=-1). - Always explicitly set the default value if the stamp variable is not set for safety. - Added comments. * partition/bootloader_grub.go: - MarkCurrentBootSuccessful(): Set "snappy_stamp=1". * partition/bootloader_grub_test.go: - TestGrubMarkCurrentBootSuccessful(): New test for grub's version of MarkCurentBootSuccessful(). * partition/bootloader_uboot_test.go: - TestUbootMarkCurrentBootSuccessful(): new test for uboots's version of MarkCurentBootSuccessful(). * partition/partition_test.go: - Code to mock bootloaderUbootStampFile. James Hunt 2015-03-30 15:42:31 +01:00
  • 2986efe898 minor cleanup Michael Vogt 2015-03-30 16:32:51 +02:00
  • 9adcaabc3b remove redundant tests Michael Vogt 2015-03-30 16:27:49 +02:00
  • 1530ce2c8e cleanup and apparmor_test rework Michael Vogt 2015-03-30 16:23:50 +02:00
  • e4ee3425a8 implement Security{Override,Policy} to match the spec Michael Vogt 2015-03-30 15:06:22 +02:00
  • b655e00d09 * Sync with lp:snappy. James Hunt 2015-03-30 14:05:58 +01:00
  • 4411c6a9cb add crude xz pipe based compression Michael Vogt 2015-03-30 14:08:58 +02:00
  • 5d2f155e9a generate configApparmor via generateApparmorJSONContent() Michael Vogt 2015-03-30 12:28:39 +02:00
  • e347ac1e7a extract getAaProfile and generalize tests Michael Vogt 2015-03-30 12:21:47 +02:00
  • f4d3b5aa97 * etc/grub.d/09_snappy: Make executable to stop grub ignoring it. James Hunt 2015-03-30 11:15:13 +01:00
  • 24e2f99bd8 refactor to extract common code, generate apparmor in for services correctly too Michael Vogt 2015-03-30 12:13:13 +02:00
  • 4dcc25913f extract SecurityDefinitions and share between Binaries/Services Michael Vogt 2015-03-30 11:50:05 +02:00
  • 797c781839 add support for SecurityTemplate Michael Vogt 2015-03-30 11:33:35 +02:00
  • 34139fc6e5 implement security caps for binaries Michael Vogt 2015-03-30 11:29:19 +02:00
  • 5ff053246d implement SecurityOverride Michael Vogt 2015-03-30 10:58:00 +02:00
  • ef789d8285 apply string whitelist for binaries string fields too Michael Vogt 2015-03-30 10:16:13 +02:00
  • 4eb1fe66d1 generalize code Michael Vogt 2015-03-30 10:06:58 +02:00
  • e447ce0ca0 add whitelist for service struct Michael Vogt 2015-03-30 09:34:13 +02:00
  • d34fe98dfb make generateSnapServicesFile() return a error on error Michael Vogt 2015-03-30 09:10:19 +02:00
  • a95cfdde4f Allow configuring a package while installing by sergiusens approved by mvo Sergio Schvezov 2015-03-27 19:31:52 -04:00
  • 4ce05ec257 Fix bug that shows installed snaps as updateable. by mvo approved by sergiusens Michael Vogt 2015-03-27 17:51:37 -04:00
  • 7d1de0034d Allow configuring a package when installing Sergio Schvezov 2015-03-27 18:32:34 -03:00
  • c4d82aba1e snappy/snapp.go: only append parts to Updates() that have a new version (or no current version) Michael Vogt 2015-03-27 22:11:57 +01:00
  • 50415cf9f9 Generate "meta/hashes.yaml" on build that contains hashes of all included files in a snap. by mvo approved by sergiusens,mvo,jdstrand Michael Vogt 2015-03-27 16:11:46 -04:00
  • aa38b35aad merged lp.snappy and resolved conflicts Michael Vogt 2015-03-27 20:52:52 +01:00
  • a353b52ecc Fix a typo in the debian/control template and also ensures that whitespaces are taken into account when checking for empty descriptions by mvo approved by sergiusens Michael Vogt 2015-03-27 15:41:48 -04:00
  • fe1f1c7cc3 Remove the "name" field from the generated systemd-hook file for backwards compatibility. by mvo approved by sergiusens Michael Vogt 2015-03-27 15:31:59 -04:00
  • f99ff23f5b Exclude '.' from generated snaps. by mvo approved by sergiusens Michael Vogt 2015-03-27 15:23:15 -04:00
  • 865274fd40 Use "snappy" for the privs dropping, not snappy-go by mvo approved by sergiusens Michael Vogt 2015-03-27 15:21:43 -04:00
  • 7889ef94b5 Fix tests when running with "LANG!=C" by mvo approved by sergiusens Michael Vogt 2015-03-27 15:11:52 -04:00
  • ef69ccd74f snappy/click.go: its snappy now, not snappy-go :) Michael Vogt 2015-03-27 20:09:09 +01:00
  • 3a3cbb0f5b Add missing test for generateSnapServicesFile() by mvo approved by sergiusens Michael Vogt 2015-03-27 15:02:09 -04:00
  • fbb340116e Drop privs on unpacking a snap. by mvo approved by sergiusens,seth-arnold,jdstrand Michael Vogt 2015-03-27 14:41:47 -04:00
  • f54b8e71de make diff run with C locale Michael Vogt 2015-03-27 19:35:24 +01:00
  • 6f79f936d5 add test for generateSnapServicesFile() Michael Vogt 2015-03-27 19:16:05 +01:00
  • 9002a3bcc0 * 'go fmt'. James Hunt 2015-03-27 17:36:29 +00:00
  • 62ee9e1ba4 * generateSnapServicesFile(): - Fix incorrect unit directive (ExecStopPost=, not ExecPostStop=). - Specify full paths for ExecStop= and ExecStopPost= to ensure unit is valid. James Hunt 2015-03-27 17:36:01 +00:00
  • e156d0dd93 Make snappy-go the default snappy. by mvo approved by mvo Michael Vogt 2015-03-27 13:02:14 -04:00
  • 9ccb275e86 * Sync with lp:snappy. James Hunt 2015-03-27 16:53:00 +00:00
  • 1e6f68f5d5 Add docs/security.md by jdstrand approved by mvo Jamie Strandboge 2015-03-27 12:52:05 -04:00
  • 381c169c30 * logger/logger.go: Format(): Don't include filename+line number unless logging levels ERROR and above. * logger/logger_test.go: - Assert new log format behaviour. - TestWrite(): Now tests all log levels. - TestFormat(): Now tests all log levels. James Hunt 2015-03-27 16:51:38 +00:00
  • 8ed831dd5d go fmt Michael Vogt 2015-03-27 17:47:03 +01:00
  • f7f031aa0a Document meta/* files and their content. by mvo approved by mvo,jdstrand Michael Vogt 2015-03-27 12:42:09 -04:00
  • 257346b0e4 Make snappy on grub systems detect a broken boot and fall back to the other root partition on power cycling. by jamesodhunt approved by mvo,cjwatson James Hunt 2015-03-27 12:32:08 -04:00
  • ddb2d70e63 cmd/snappy/cmd_versions.go: fix typo, thanks to Sergio! Michael Vogt 2015-03-27 15:07:46 +01:00
  • 0830096844 docs/meta.md: make regex consistent (thanks Jamie!) Michael Vogt 2015-03-27 14:25:09 +01:00
  • 380ea95d67 Call systemctl daemon-reload only when services are provided. by mvo approved by sergiusens Michael Vogt 2015-03-27 09:21:34 -04:00
  • be07d8d740 Run tests with "C" locale. by jamesodhunt approved by mvo James Hunt 2015-03-27 08:02:09 -04:00
  • d15bfe76b2 ensure that we do avoid uneeded daemon-reloads Michael Vogt 2015-03-27 12:36:27 +01:00
  • 97269b692f merged lp:snappy and resolved conflicts Michael Vogt 2015-03-27 12:30:22 +01:00
  • 4c71ce4db0 fix typo Michael Vogt 2015-03-27 12:23:17 +01:00
  • c01b055c2e use helpers.ShouldDropPrivs() in click.go too Michael Vogt 2015-03-27 12:22:38 +01:00
  • c6f958b988 check x bits in findBinaryInPath() Michael Vogt 2015-03-27 12:21:42 +01:00
  • 5d90e9e2c9 * Set locale to C to avoid test failures. James Hunt 2015-03-27 11:19:59 +00:00
  • c9cdf20e2f add new ShouldDropPrivs() helper Michael Vogt 2015-03-27 12:17:01 +01:00
  • 129085ca78 implement prctl(PR_SET_NO_NEW_PRIVS), thanks Seth! Michael Vogt 2015-03-27 11:59:28 +01:00
  • 28d8ae3a82 exclude "." Michael Vogt 2015-03-27 10:45:45 +01:00
  • e6eff05999 omit the "name" when generating the compat .snappy-systemd file Michael Vogt 2015-03-27 10:31:05 +01:00
  • 6d190c5fc5 remove long description to be fully compatible with click and the click review tools Michael Vogt 2015-03-27 10:26:31 +01:00
  • 24890886ec snappy/build.go: fix typo and fix check for empty description Michael Vogt 2015-03-27 10:18:10 +01:00
  • 359c6006ce move some dependencies to ubuntu-snappy instead of ubuntu-snappy-cli to unblock installing on a desktop system where e.g. debsig-verify is not needed for snappy build Michael Vogt 2015-03-27 10:08:00 +01:00
  • 0a5419b12b * Sync with lp:snappy. James Hunt 2015-03-27 08:58:06 +00:00
  • db81af4191 add "versions" deprecation info Michael Vogt 2015-03-27 09:53:13 +01:00
  • 000b66f085 * Comments. James Hunt 2015-03-27 08:46:47 +00:00
  • bf49eec54c switch default to snappy-go Michael Vogt 2015-03-27 09:28:08 +01:00
  • 2052acb602 update allowed name/version chars Michael Vogt 2015-03-27 08:01:38 +01:00
  • 697c380029 document the allowed chars for name/version Michael Vogt 2015-03-26 21:41:29 +01:00
  • 4ad56cf256 docs/hashes.md: add documentation too Michael Vogt 2015-03-26 21:35:57 +01:00
  • 1c0562fedb make hashes type compatible with find Michael Vogt 2015-03-26 18:16:01 +01:00
  • a24be3951d Use goctest if available. by chipaca approved by mvo John R. Lenton 2015-03-26 13:11:52 -04:00
  • 69a463dc33 add docs/frameworks.md Jamie Strandboge 2015-03-26 12:09:19 -05:00
  • 7cb2d93549 merged lp:snappy and resolved conflicts Michael Vogt 2015-03-26 18:08:54 +01:00
  • c2e32a6bb7 docs/frameworks.md: update for security.md Jamie Strandboge 2015-03-26 12:06:43 -05:00
  • 70a0f3fdda merge from trunk Jamie Strandboge 2015-03-26 11:59:46 -05:00
  • 0a4cf840ac add docs/security.md Jamie Strandboge 2015-03-26 11:54:59 -05:00
  • 1d227272e6 document ports Michael Vogt 2015-03-26 17:51:37 +01:00
  • e9bef187bc incoperate feedback from jamie, thanks! Michael Vogt 2015-03-26 17:14:14 +01:00
  • 8ae577827d Have build filter unwanted files. by chipaca approved by mvo John R. Lenton 2015-03-26 12:11:47 -04:00
  • 2538e2a20c * Sync with lp:snappy. James Hunt 2015-03-26 16:09:50 +00:00
  • f57c7ef3f5 * partition/bootloader_grub_test.go: - makeFakeGrubEnv(): Remove mock grub-install call. - TestToggleRootFS(): - Correct array indexes now grub-install is not used. - Add check for expected number of entries in allCommands. * partition/partition.go: - Comments. - Add new mountEntry type to represent a mount rather than just a string, allowing the mounts to be tracked by a single slice rather than two. - bindmountAndAddToGlobalMountList(): - Add options parameter - makeDirectory(): New function to encapsulate mkdir calls for testing. * partition/partition_test.go: - Updated for mountEntry and mountEntryaArray. - Ensure all tests clean up mounts. James Hunt 2015-03-26 16:08:12 +00:00
  • 4d9dc47fbc make run-checks use goctest if available John R. Lenton 2015-03-26 15:58:29 +00:00
  • 6ed738769d replace the cp with a walk so we can filter; filter. John R. Lenton 2015-03-26 14:27:56 +00:00
  • 27efe41d10 Add missing golang-juju-loggo-dev build-depends (with wrap-and-sort) by mvo approved by sergiusens Michael Vogt 2015-03-26 09:51:48 -04:00
  • b91c4c0786 run "wrap-and-sort Michael Vogt 2015-03-26 14:48:49 +01:00
  • 185f8e567a incorporate feedback from mvo Jamie Strandboge 2015-03-26 08:35:07 -05:00
  • 6489f2b8c8 fix typo (thanks Sergio!) Michael Vogt 2015-03-26 14:33:19 +01:00