Merge lp:~sergiusens/snappy/frameworkPath into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~sergiusens/snappy/frameworkPath |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
235 lines (+73/-36) 6 files modified
debian/ubuntu-snappy.dirs (+1/-0) snappy/click_test.go (+24/-12) snappy/dirs.go (+31/-8) snappy/parts.go (+3/-0) snappy/purge.go (+13/-11) snappy/snapp.go (+1/-5) |
| To merge this branch: | bzr merge lp:~sergiusens/snappy/frameworkPath |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | Needs Fixing on 2015-08-24 | ||
| Federico Gimenez (community) | continuous-integration | Approve on 2015-08-19 | |
| Jamie Strandboge | 2015-05-26 | Needs Information on 2015-05-27 | |
| Michael Vogt | 2015-05-26 | Approve on 2015-05-27 | |
| Snappy Tarmac | continuous-integration | Pending | |
|
Review via email:
|
|||
Commit Message
Use /frameworks for framework snaps
Description of the Change
Notice that this requires security/apparmor work.
| Michael Vogt (mvo) wrote : | # |
Does more need to change for this to land, i.e. do we need apparmor changes in lock-step?
| Sergio Schvezov (sergiusens) wrote : | # |
On Wed, May 27, 2015 at 06:40:01AM -0000, Michael Vogt wrote:
> Does more need to change for this to land, i.e. do we need apparmor changes in lock-step?
Not sure if in lockstep, but the apparmor changes would need to land
before this, reason for adding jdstrand as a reviewer.
| Jamie Strandboge (jdstrand) wrote : | # |
I've not looked at the code changes, but this states that it needs apparmor work. What is needed, adjustments to handle /frameworks instead of just /apps? If so, I think this should be sufficient in click-apparmor's click.py:
=== modified file 'src/apparmor/
--- src/apparmor/
+++ src/apparmor/
@@ -542,7 +542,7 @@
# snappy hardcodes these and doing this allows snappy images to not require
# click
if os.path.
- return "{%s}" % ",".join(["/apps", "/oem"])
+ return "{%s}" % ",".join(["/apps", "/oem", "/frameworks"])
from gi.repository import Click
| Jamie Strandboge (jdstrand) wrote : | # |
Oh, and I *hate* 'if os.path.
- 472. By Sergio Schvezov on 2015-06-03
-
trunkpdate
- 473. By Sergio Schvezov on 2015-06-03
-
adding /frameworks to 'dirs'
- 474. By Sergio Schvezov on 2015-06-03
-
Adding /oem and /frameworks to purge list
| Sergio Schvezov (sergiusens) wrote : | # |
> I've not looked at the code changes, but this states that it needs apparmor
> work. What is needed, adjustments to handle /frameworks instead of just /apps?
> If so, I think this should be sufficient in click-apparmor's click.py:
>
> === modified file 'src/apparmor/
> --- src/apparmor/
> +++ src/apparmor/
> @@ -542,7 +542,7 @@
> # snappy hardcodes these and doing this allows snappy images to not
> require
> # click
> if os.path.
> - return "{%s}" % ",".join(["/apps", "/oem"])
> + return "{%s}" % ",".join(["/apps", "/oem", "/frameworks"])
>
> from gi.repository import Click
With this installation works fine but the profile symlinks are wrong:
(amd64)
total 0
lrwxrwxrwx 1 root ubuntu 36 Jun 3 19:10 webdm_snappyd_0.8 -> /apps/webdm/
that's a broken link; who creates the symlink these days? Snappy or apparmor?
| Jamie Strandboge (jdstrand) wrote : | # |
snappy creates the symlink in /var/lib/
| Jamie Strandboge (jdstrand) wrote : | # |
Oh, webdm uses aa-profile-hook, not aa-clickapparmor. In that case, snappy creates the symlink in /var/lib/
(Gosh it will be nice to get this cleaned up)
| Sergio Schvezov (sergiusens) wrote : | # |
ah, stale files, actually no link is being created.
| Sergio Schvezov (sergiusens) wrote : | # |
ugh, this was related to the bug Chipaca mentioned and is ready for review here: https:/
When applying https:/
| John Lenton (chipaca) wrote : | # |
You've resurrected agreerator, which points to a bad merge; fix that.
Please also consider changing targetDirForType() to a method of type. This is more work, because you'd have to add something like SetRootDir to pkg, and call it from snappy's SetRootDir, so only do it if you're feeling fancy.
I suspect this is going to conflict with some of the branches i've had up for review for a few days now... sigh.
| Federico Gimenez (fgimenez) wrote : | # |
PASSED: Continuous integration, rev:474
http://
Executed test runs:
Click here to trigger a rebuild:
http://
Unmerged revisions
- 474. By Sergio Schvezov on 2015-06-03
-
Adding /oem and /frameworks to purge list
- 473. By Sergio Schvezov on 2015-06-03
-
adding /frameworks to 'dirs'
- 472. By Sergio Schvezov on 2015-06-03
-
trunkpdate
- 471. By Sergio Schvezov on 2015-05-26
-
Use /frameworks for framework snaps


Thanks, this looks good.