Permalink
Switch branches/tags
Commits on Aug 23, 2017
  1. cmd/snap-confine: allow running snap-exec without confinement

    zyga committed Aug 23, 2017
    This is a openSUSE specific patch that I think only makes sense in the
    case when snap-confine is confined but snap applications are not.
    Proposed to gather feedback.
    
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  2. cmd/snap-confine: allow reading /proc/filesystems

    zyga committed Aug 23, 2017
    This rule is required to make snap-confine work on openSUSE tumbleweed.
    The rule is presumably required by selinux as seen in the following
    strace fragment:
    
    23075 statfs("/sys/fs/selinux", 0x7ffdaa3ad9b0) = -1 ENOENT (No such file or directory)
    23075 statfs("/selinux", {f_type=BTRFS_SUPER_MAGIC, f_bsize=4096, f_blocks=10486528, f_bfree=6317286, f_bavail=5992378, f_files=0, f_ffree=0, f_fsid={val=[2999193500, 2112688126]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0
    23075 brk(NULL)                         = 0x20b4000
    23075 brk(0x20d5000)                    = 0x20d5000
    23075 open("/proc/filesystems", O_RDONLY) = 3
    
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  3. cmd/snap-confine: allow using additional libraries required by openSUSE

    zyga committed Aug 23, 2017
    On openSUSE tumbleweed I need a few more rules to successfully
    run snap-confine under apparmor. This includes libresolv, libpcre
    and ironically libselinux.
    
    Since snap-confine links to libcap dynamically we also need an entry for
    this. All entries are duplicated for the helper hat profile.
    
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  4. cmd/snap-confine: genearlize apparmor profile for various lib layout

    zyga committed Aug 23, 2017
    Depending on the distribution at hand we the conceptual "/lib" may be
    at /lib or /usr/lib, the "lib" directory may be spelled
    lib, lib32, lib64 or even libx32. It may be optionally followed by a
    multiarch suffix. This patch applies those rules to all the shared
    libraries we need to map and read.
    
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  5. Merge pull request #3581 from jhenstridge/polkit-support

    mvo5 committed Aug 23, 2017
    daemon: add polkit support to /v2/login
  6. Merge pull request #3569 from stolowski/snapctl-numbers-format

    mvo5 committed Aug 23, 2017
    snapd,snapctl: decode json using Number
  7. Merge pull request #3782 from mvo5/go-vet-zesty

    mvo5 committed Aug 23, 2017
    client: fix go vet 1.7 errors
Commits on Aug 22, 2017
  1. Merge pull request #3783 from mvo5/shellcheck-zesty

    zyga committed Aug 22, 2017
    tests: make 17.04 shellcheck clean
  2. Merge pull request #3741 from mvo5/remove-test-interfaces-help-master

    zyga committed Aug 22, 2017
    tests: remove TestInterfacesHelp as it breaks when go-flags changes
  3. tests: make 17.04 shellcheck clean

    mvo5 committed Aug 22, 2017
  4. client: fix go vet 1.7 errors

    mvo5 committed Aug 22, 2017
  5. Merge pull request #3757 from mvo5/core-revert-restart-no-integration

    mvo5 committed Aug 22, 2017
    snapstate: undo a daemon restart on classic if needed
  6. cmd/snap-repair: recover brand/model from /var/lib/snapd/seed/asserti…

    pedronis committed Aug 22, 2017
    …ons checking signatures and brand account
    
    This adds code to initialise snap-repair state with brand/model recovered from /var/lib/snapd/seed/assertions.
  7. Merge remote-tracking branch 'upstream/master' into core-revert-resta…

    mvo5 committed Aug 22, 2017
    …rt-no-integration
  8. Merge pull request #3774 from zyga/tweak/use-unsaf-io-for-testing

    zyga committed Aug 22, 2017
    spread: opt into unsafe IO during spread tests
  9. Merge branch 'master' of github.com:snapcore/snapd into tweak/use-uns…

    zyga committed Aug 22, 2017
    …af-io-for-testing
  10. Merge pull request #3776 from mvo5/fix-master-snap-repair

    zyga committed Aug 22, 2017
    snap-repair: update snap-repair/runner_test.go for API change in makeMockServer
Commits on Aug 21, 2017
  1. Make updateKeyValueStream reject unsupported options

    pedronis committed Aug 21, 2017
    Also this fixes the proxy settings' keys which were wrong but that was unnoticed.
  2. tests: wait until the port is listening after start the fake store (#…

    sergiocazzolato committed with pedronis Aug 21, 2017
    …3772)
    
    This change is to fix the tests refresh-all and refresh-all-undo by
    waiting util the fake store is ready to be contacted.
    
    Based on different tests done on PR 3768, 3770 and 3771 it is clear the
    problem is because the store is not ready when snap refresh is executed
    and it is causing the error seen in the autopkgtests.
  3. spread: opt into unsafe IO during spread tests

    zyga committed Aug 17, 2017
    This patch enables a variable now honored by our atomic file write
    helpers. As referenced earlier it offers massive improvements in time
    needed to perform certain tests.
    
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  4. corecfg: fix typo in tests

    zyga committed with mvo5 Aug 21, 2017
    Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  5. Merge pull request #3725 from zyga/tweak/allow-disabling-sync-for-tests

    zyga committed Aug 21, 2017
    osutil: honor SNAPD_UNSAFE_IO for testing