/srv/irclogs.ubuntu.com/2021/10/01/#snappy.txt

jameshamurray: hi.  I was wondering if you had some time to look at some of the polkit related PRs I have up. This is still following the basic plan I outlined on the forum a while back, that you looked over.02:07
amurrayhey jamesh - I'm on leave next week but will put it at the top of my list to look at when I get back on the 11th - I see 4 different PRs mentioning polkit  https://github.com/snapcore/snapd/pulls?q=is%3Apr+is%3Aopen+polkit - but none are marked as needs-security-review - which ones in particular, or in which order should I do them?02:11
jameshamurray: three of them (9986, 10173 and 10219) are conceptually all part of the one feature, with nothing exposed until the last would land. I'm not sure how you'd find it easiest to review that.02:16
jameshamurray: i.e. I think we'd need security sign-off for the last one to land, but that sign-off would be contingent on the code in the other two being sane.02:17
jameshThe last PR (allowing a snap to act as a polkit agent) is really only really useful for Ubuntu Core Desktop at the moment: I'd like some feedback on the AppArmor rules and how best to confine the setuid helper, but it probably counts as a lower priority.02:19
amurrayok thanks, I'll prob go in the order you list them above then02:38
jameshamurray: would you be okay with some of the earlier PRs getting landed before you do the full review?02:40
jameshin particular I'd like to get 10173 landed to simplify review of 10219.02:40
jamesh(it just adds infrastructure for use by interfaces, rather than exposing anything of its own).02:41
jameshi.e. it will install a polkit policy file if an interface tells it to, but there are currently no interfaces that tell it to do so.02:42
amurrayhmm I was thinking that might be the more crucial one to get reviewed as it is the one that interfaces with the host system but I don't want to block you getting things done so if you need it more urgently, I don't mind coming back to it later02:43
jameshthe logic is essentially all contained in a new ./interfaces/polkit directory, so should be easy to come back to02:44
amurrayactually I've just had a quick look over that one and I don02:44
amurraydon't think it looks too scary - does it do validation of the policy anywhere though?02:44
amurrayI see it doesn't yet - I would want to see how 10173 gets integrated with 9986 then as that will be the security critical part02:46
jameshwe've got validation in 9986 (to the extent that Go's XML library can do validation).02:46
jameshI was planning to tie the validation code into 10219 when that's merged: the plan is to have an interface attribute giving an action ID prefix, and check that the actions referenced in the XML all start with that.02:47
jameshThis way we can use store assertions to control what actions a snap can install02:48
amurraysounds great - I've just approved 10173 :)02:49
jameshthanks!02:49
amurrayyou're welcome :) - will take a look at 9986 etc in a week or so when I get back02:50
jameshthe action ID checks in the validator check both defined actions and "imply" assertions02:51
jameshWe don't want a snap to declare one action with a "default yes" policy that is set to imply a grant of an unrelated service's actions02:52
mborzeckimorning05:50
mardy_2ndmborzecki: hi!05:59
mborzeckimardy_2nd: hey06:00
=== mardy_2nd is now known as mardy
zygahappy Friday :)06:24
zygaI won't be on IRC much today, heading to the office to set up some boards 06:25
zygao/06:25
=== jamesh_ is now known as jamesh
pstolowskimorning07:05
mborzeckipstolowski: hey07:27
mvogood morning!07:27
mardyhi zyga-mbp, pstolowski, mvo 07:38
mborzeckimvo: hey07:42
mborzeckimvo: no new fires since yesterday? 🙂07:46
mborzeckimvo: can you take a look at https://github.com/snapcore/snapd/pull/10865 ?07:46
mupPR #10865: cmd/snap: improve snap run help message <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10865>07:46
mupPR snapd#10867 opened: desktop, usersession: observe notifications <Created by stolowski> <https://github.com/snapcore/snapd/pull/10867>07:50
mvomborzecki: haha - no fires **yet**07:51
mvomborzecki: sure, let me check that PR07:51
pstolowskijamesh: hi, i've opened the next notifications PR ^07:52
jameshpstolowski: cool. I'll have a look07:52
pstolowskijamesh: also, I've tracked down the occasional panic I had with the existing code07:52
pstolowskiso it's fixed there07:52
jameshoh? what was the problem?07:52
pstolowskijamesh: afaiu the ObserveNotifications loop could break either on ctx.Done() or channel closing (in which case we would receive nil signal), we need the usual "case sig, ok := <-ch:" guard there07:54
jameshah.07:54
pstolowskijamesh: is the problem was in the pre-existing code, I think we simply never used context there until now07:55
pstolowskis/is//07:56
mborzeckimvo: while at it, any chance you could take a look at https://github.com/snapcore/snapd/pull/10847 too?08:02
mupPR #10847: cmd/snap-confine: die when snap process is outside of snap specific cgroup <cgroupv2> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10847>08:02
pstolowskijamesh: btw shall I drop TestCloseNotificationError test for gtk? you said it's not a realistic case right?08:18
mardydo we have any utility function to copy a map? (better if deep copy)08:19
pstolowskimardy: I don't think so, we have CopyAttributes for interface attributes, and we might have something else for a specific kind of map, but nothing generic08:21
mborzeckimardy: hmm maybe miguelpires added something, i think he had some code for deep comparison or sth08:24
pstolowskimvo: could you land https://github.com/snapcore/snapd/pull/10760 ? unrelated arch failure08:25
mupPR #10760: o/snapstate: support ignore validation flag on install/update <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10760>08:25
miguelpiresmardy mborzecki: sorry, no luck there, that was just an unsorted match checker for tests08:28
mvopstolowski: sure08:28
pstolowskithanks!08:30
mupPR snapd#10760 closed: o/snapstate: support ignore validation flag on install/update <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10760>08:31
=== pstolowski_ is now known as pstolowski
=== alan_g_ is now known as alan_g
mupPR snapd#10868 opened: o/snapstate: support ignore-validation flag when updating to a specific snap revision <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10868>09:31
mardycan someone explain me what these two lines do? https://github.com/snapcore/snapd/blob/master/overlord/ifacestate/helpers.go#L922-L92309:33
mardyat a first sight that cref variable is exiting the scope, so it would seem that these lines might not have an effect09:34
pstolowskimardy: they affect cref.ID() below?09:37
pstolowskisee ID() implementation09:37
mardypstolowski: makes sense, thanks!09:42
pstolowskihttps://github.com/snapcore/snapd/pull/10818 is ready for reviews now10:47
mupPR #10818: tests: test for enforcing with prerequisites <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10818>10:47
mupPR snapd#10869 opened: o/snapstate: use device ctx in prerequisite install/update <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/10869>11:11
mupPR snapd#10865 closed: cmd/snap: improve snap run help message <Simple 😃> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10865>11:21
mupPR core#126 closed: Makefile: refactor to have a common $TARGET_BASENAME <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/core/pull/126>11:37
=== waveform_ is now known as waveform
mborzeckimvo: can you land https://github.com/snapcore/snapd/pull/10534 ?12:16
mupPR #10534: overlord/devicestate, tests: enable UC20 remodel, add spread tests <Remodel 🚋> <Run nested> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10534>12:16
mvomborzecki: with pleasure12:50
mupPR snapd#10534 closed: overlord/devicestate, tests: enable UC20 remodel, add spread tests <Remodel 🚋> <Run nested> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10534>12:51
mborzeckithanks!12:52
ijohnson[m]Nice12:55
* mvo hugs mborzecki ijohnson[m] 13:29
pstolowskimborzecki: which of your PRs need 2nd review?13:29
mborzeckipstolowski: this one https://github.com/snapcore/snapd/pull/1084713:30
mupPR #10847: cmd/snap-confine: die when snap process is outside of snap specific cgroup <cgroupv2> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10847>13:30
pstolowskimborzecki: +113:49
ijohnson[m]mardy: in your reivew of my disks PR you say `"this function returns the root mount points for the given partition" which is not what the function returns` 13:51
ijohnson[m]but that's 100% what the function does13:52
ijohnson[m]so I'm confused about if I am confused about your comment or you are confused about what the function does ? 😀 13:52
mborzeckipstolowski: thanks!13:54
mardyijohnson[m]: mmm... my understanding is that the function returns the mount points for the given partition's root directory13:57
mardyijohnson[m]: right, I think I see where the confusion is coming from: when I read "root mount point" I think of the filesystem root13:59
mardyand there's only one of them13:59
ijohnson[m]it returns the set of directory's where the partition has it's root directory mounted13:59
ijohnson[m]oh you mean on the partition? wouldn't that just always be "/" ? 14:00
mardyno no, I mean on the whole FS14:00
mardyI mean, to me the expression "root mount point" is very confusing14:00
ijohnson[m]mardy: well what I mean is that you could have mount points like the directory /foo that physically exists on the filesystem of /dev/sda1, and that /foo directory is mounted at /usr/foo14:01
ijohnson[m]this function doesn't want want any subdirectories of the partition, it only wants the root directory of the partition14:01
mardyijohnson[m]: yes, and this function would skip that14:01
mardyindeed14:01
ijohnson[m]what would be a more clear name / phrase for you ?14:01
ijohnson[m]mardy: exactly14:01
mardyijohnson[m]: the one I suggested :-)14:02
ijohnson[m]ah right sorry I forgot you suggested one in your comment, yes that's fair thanks14:02
mardyijohnson[m]: I think that the confusion arises from the fact that "root" can be read in two ways: substantive ("the root of the partition") and appositive ("the root partition"). You were referring to the former, but when I read that function name I think of the latter. :-) I think that the name I suggested helps reducing the ambiguity14:07
ijohnson[m]yeah I think you're right it is less ambiguous14:08
mupPR snapd#10870 opened: overlord/devicestate: record recovery capable system on a successful remodel <Run nested> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10870>14:12
mupPR snapd#10871 opened: many: support an API flag system-restart-immediate to make snap ops proceed immediately with system restarts <Created by pedronis> <https://github.com/snapcore/snapd/pull/10871>14:17
mupPR core20#115 opened: Start bootchart earlier <Created by alfonsosanchezbeato> <https://github.com/snapcore/core20/pull/115>15:35
ijohnson[m]mvo: could you force land https://github.com/snapcore/snapd/pull/10862 for me?15:39
mupPR #10862: osutil/disks: add RootMountPointsForPartition <Simple 😃> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10862>15:39
ijohnson[m]the failures there are unrelated15:39
mvoijohnson[m]: sure, done15:45
mupPR snapd#10862 closed: osutil/disks: add RootMountPointsForPartition <Simple 😃> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10862>15:47
=== jschwart_ is now known as jschwart
=== sarnold_ is now known as sarnold
mupPR snapd#10872 opened: osutil/disks: support filtering by mount opts in MountPointsForPartitionRoot <Simple 😃> <Skip spread> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10872>22:38
=== rZZZr is now known as RzR

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!