=== ephemer0l is now known as GeneralDiscourse [01:27] I just found a really annoying bug in the apparmor profile shipped with chrony. This person found it earlier: https://askubuntu.com/questions/1411005/could-not-open-run-chrony-chronyd-pid-permission-denied [01:27] I can't find any project to report this against in LP. Any suggestions? [01:28] It just needs `@{run}/chrony/{,**} rw,` in the apparmor profile instead of `@{run}/chrony/{,*} rw,` [01:30] `ubuntu-bug chrony` might do the trick. [01:31] That should upload some debugging info and then give you the ability to fill out a bug report form. [01:40] I should remember that by now... :-) Thanks arraybolt3 [01:40] blahdeblah: if its apparmor related, and you aren't sure. Just file it against apparmor in lp https://bugs.launchpad.net/ubuntu/+source/apparmor [01:41] or against the upstream project in gitlab https://gitlab.com/apparmor/apparmor/-/issues [01:41] heya blahdeblah :) [01:41] jjohansen: The file is shipped in the chrony package, so seems like it probably should be raised against that? [01:41] \o sarnold [01:42] blahdeblah: sure, but if you aren't sure etc. better to report it, the apparmor people can always add affected packages in lp etc [01:42] Cool - thanks === chris14_ is now known as chris14 === chris14_ is now known as chris14 [07:03] hi blahdeblah, gladly I highlight on chrony and can see the bug now - https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/2004525 it is [07:03] -ubottu:#ubuntu-security- Launchpad bug 2004525 in chrony (Ubuntu) "Fatal error : Could not open /run/chrony/chronyd.pid : Permission denied" [Undecided, Incomplete] [07:03] thanks [07:12] hmm, so far I agree to amurray [07:12] a few more things to check ... [07:33] amurray, cpaelzer: Thanks for looking. Weird problem; what other data should I try to gather? [07:34] I can back out my override and try again, I guess.. [07:39] blahdeblah: hi [07:39] blahdeblah: I'm currently checking and upgrading a few older chrony systems of mine [07:39] blahdeblah: so far, no issue here [07:39] blahdeblah: but I've found a theory [07:39] blahdeblah: the path changed from /run/chrony.pid to /run/chrony/chrony.pid [07:40] blahdeblah: that was also adapted in the profile [07:40] blahdeblah: but, if you'd have kept the old profile of focal - then it would show the issue you have [07:40] blahdeblah: what does `grep 'run.*/chrony' /etc/apparmor.d/usr.sbin.chronyd` give you? [07:40] Yeah - I definitely checked that. It's correct. [07:41] So I commented out the line and it still works. This upgrade did go a little pear-shaped on me and failed halfway through. [07:41] I had to manually massage a few packages back into life. Maybe one of them did something strange. [07:41] The upgrade seemed to have problems with duplicated utilities in /bin vs. /usr/bin. I know on new systems they're just symlinked from / into /usr, but IIRC the old layout is kept on upgrades? [07:41] blahdeblah: so you already have the new rule (having @{run}/chrony/{,*} rw,), and still without the one you suggested (@{run}/chrony/{,**} rw,) it doesn't work for you ? [07:42] odd [07:42] the next upgrade I'm running is an rpi4 which is a bit slower, but so far I can't recreate the issue :-/ [07:43] blahdeblah: just for completeness, could you remove the rule you added and report the full apparmor denial message int he bug? [07:44] cpaelzer: Output you asked for: https://pastebin.ubuntu.com/p/YY2Vj4pTzV/ [07:45] But the thing is, now it works, without the override. [07:45] umm, what [07:45] yeah, weird [07:45] I'll see if there was a deny in my logs [07:46] (from apparmor) [07:46] yep, thanks [07:46] so what might we look at then, dh_apparmor not issuing a reload of the profile maybe? [07:46] well, let us start with the denial in your logs [07:48] No denial ;-( https://pastebin.ubuntu.com/p/Vpk3dSYYg3/ [07:49] so the "apparmor fix" was a red herring? [07:49] Seems like it. :-( [07:51] I updated the bug with all we discussed [07:51] A number of systemd files ended up with old versions in /usr/bin and new versions in /bin, and I had to move the old ones aside to complete the upgrade, so it might be that one of those was interfering with apparmor profile loads? [07:51] I hope to get the issue on my system that is upgrading in background [07:51] well, if it would not have loaded the new apparmor, then it would have had a denial [07:51] Yeah, you would think so... :-\ [07:52] oh wait [07:52] maybe it is vice versa [07:52] The fact that one other person in the world had it suggests to me that there is some kind of obscure bug involved, but I honestly don't think it's worth chasing down. I think I'll close the bug now that I can't reproduce. [07:52] PIDFile=/run/chrony/chronyd.pid is an entry in the .service file [07:52] maybe it was using the wrong path there due to your systemd service confusion [07:52] scrolling to your old systemctl status in the bug ... [07:53] none there and it isn't seen in the askubuntu post [07:54] too bad, I had hoped we might find evidence of it using the wrong path there [08:02] I'm looking into file permissions [08:02] and hoping to find something with my last system upgrading [08:03] but if not, then this will have to stay incomplete for now :-/ === cpaelzer_ is now known as cpaelzer [18:45] is there any use to have a source.list entry for security.ubuntu.com when one uses {uk,us}.archive.ubuntu.com which are AFAIK, 2 official primary mirrors run by Canonical directly? AFAIK, security.ubuntu.com is there to ensure a non-Canonical run mirror starts lagging and doesn't publish security fixes quickly enough [19:37] sdeziel: https://wiki.ubuntu.com/SecurityTeam/FAQ#What_repositories_and_pockets_should_I_use_to_make_sure_my_systems_are_up_to_date.3F [19:38] my understanding is it's not just about who maintains the mirrors but also about how timely updates are pushed to them [19:38] (and to the different pockets) [19:40] tomreyn: AFAIK, stuff going to -security goes to -updates soon after so that's one reason, are you aware of another? I'm asking cause we are talking about few minutes or maybe hours [19:41] sdeziel: i'm not, but i'm not leosilva (who, according to the /topic, could potentially answer your question) [19:45] sdeziel: there's no guarantee that mirrors won't enter us and uk, but if it's just canonical ips, there's no reason for security. [19:46] mdeslaur: oh interesting, thanks! [19:46] yes, security.u.c is to prevent a laggy mirror from not having the latest updates [19:47] hrm, I wonder why the uk and us mirors aren't under us and uk https://launchpad.net/ubuntu/+archivemirrors [19:59] wild guessing, that list is generated by the mirror prober script, and that's not going to be checking our own mirrors [20:03] yeah, but aren't public mirrors part of our round-robin dns thingy? [20:13] we'll use the public mirrors for many of the other country-specific mirrors, eg se.archive.ubuntu.com is donated; a lot of countries have an in-country or nearby-country mirror. I don't *think* those are round-robind, though, I think each country gets *one* such mirror, to prevent problems due to different sync frequencies