~mvo/snapd/+git/snapd-mvo:systemd-run-security-gen

Last commit made on 2018-11-29
Get this branch:
git clone -b systemd-run-security-gen https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
systemd-run-security-gen
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

a641021... by Michael Vogt

WIP: use systemd-run to write security profiles

22f332d... by Michael Vogt

Merge pull request #6195 from mvo5/run-fontconfig

snapstate: update fontconfig caches on install

67bb0d9... by Zygmunt Krynicki

Merge pull request #6229 from zyga/tweak/lazy-aa-kprobe

release: probe apparmor features lazily

7419875... by Michael Vogt

Merge pull request #6227 from zyga/fix/mock-sec-backends-for-master

overlord,daemon: mock security backends for testing

db8a192... by Samuele Pedroni

add TODO

71ba76d... by Zygmunt Krynicki

release: probe apparmor features lazily

Anything that imports the release module would trigger probing of apparmor
support in the system. This is wasteful and can be done lazily on demand. This
patch makes that so.

Signed-off-by: Zygmunt Krynicki <email address hidden>

4dd83d6... by Zygmunt Krynicki

overlord/devicestate: drop useless security backend mocking

The deviceMgrSuite was only creating a mock overlord, without any
managers. As such it doesn't need to mock the interface manager's
security backends.

Signed-off-by: Zygmunt Krynicki <email address hidden>

d7a9e33... by Zygmunt Krynicki

overlord,daemon: mock security backends for testing

Testing the overlord involves initializing the overlord, which in turn
does the same to each of the managers. The interface manager is
particularly active during the initialization phase. It will initialize
all the security backends, some which deeply interrogate the system .
It will compute and compare the system key. Lastly it will regenerate
security profiles for all the snaps if said profile is mismatching. When
setting up core the apparmor security backend performs special handling
for the snap-confine program running from core or from snapd snaps.

All of that interacts with the system. While we could, with enough
effort, mock it away at a very fine grained level we could just replace
all the real security backends with a test backend. This is easy and has
no consequences because we were not measuring anything about the
interactions of the security backend anyway.

This patch does just that. In addition, now-useless mocking of various
system commands has been removed.

Signed-off-by: Zygmunt Krynicki <email address hidden>

699b264... by Maciej Borzecki

Merge pull request #6223 from zyga/tweak/move-aa-support

cmd/libsnap: move apparmor-support to libsnap

3db2c99... by Zygmunt Krynicki

cmd/libsnap: move apparmor-support to libsnap

The apparmor-support was supposed to be in libsnap-confine-private (long
time ago) but at the time I didn't move it there because unlike what the
name says, it was being used from tools other than snap-confine,
bringing along the libapparmor and libcap dependencies to places where
that was undesirable.

With shaving the yak in snap-discard-ns we can now do just that.

Signed-off-by: Zygmunt Krynicki <email address hidden>