/srv/irclogs.ubuntu.com/2024/07/24/#ubuntu-security.txt

=== chris14_ is now known as chris14
=== voeid5 is now known as voeid
=== ahasenack__ is now known as ahasenack
=== wete_ is now known as wete
=== wete_ is now known as wete
=== wete_ is now known as wete
=== wete_ is now known as wete
hwpplayer1hello20:42
hwpplayer1sarnold: hello20:42
hwpplayer1May I ask you a question about Canonical ? (I think that you work at Canonical)20:42
hwpplayer1I'll ask later20:44
hwpplayer1Thanks20:44
sarnoldhwpplayer1: yes, I work at canonical; I'm happy to answer anything :)21:44
hwpplayer1I want to work at Canonical21:50
hwpplayer1For kernel engineer position21:50
hwpplayer1do you have any suggestion in your mind ?21:50
hwpplayer1I changed my mind21:51
hwpplayer1sarnold: how are you doing by the way ?21:53
hwpplayer1Sorry I directly asked my question21:53
hwpplayer1my bad21:53
sarnoldhwpplayer1: hey :) not bad not bad, I'm enjoying the cooler weather that we're having lately, it's been too hot for me most of the summer21:55
sarnoldhwpplayer1: how's it going for you?21:55
hwpplayer1I'm excited I started C++ course21:56
hwpplayer1And also I have a relaxed mind21:56
hwpplayer1Here is too hot same21:56
sarnoldhwpplayer1: oo relaxed mind and a good course, sounds nice, except for the heat, hehe21:56
hwpplayer1:D yes21:57
hwpplayer1I have icecream to warm down21:57
sarnold\o/21:57
hwpplayer1to become colder maybe better21:58
hwpplayer1Do you run Emacs ?21:58
sarnoldhwpplayer1: we've got a fairly large kernel team and I really only talk with a handful of kernel engineers where their work intersects with security .. so my insights into the team are a bit limited. generally speaking, I'd encourage making the most of the written essays, highlighting successes and trying to write with a 'voice'21:58
sarnoldhwpplayer1: the essays are read by humans and if you keep that in mind it'll probably help out21:59
hwpplayer1understood22:00
sarnoldhwpplayer1: heh, I run vim .. back when I started, vi was everywhere, but emacs was only on some systems, so the choice was easy. today I might choose differently, the emacs users seem happier.22:00
hwpplayer1I run vim/vi on BSD systems22:00
hwpplayer1I don't struggle to install 22:01
hwpplayer1emacs22:01
hwpplayer1how many computers and phones do you have ? I have one Debian machine and an Android 22:01
hwpplayer1what should I do to be elected to the kernel team ? how to start contributing ?22:02
hwpplayer1Should I start by visiting kernel newbies upstream developers ?22:03
hwpplayer1I will study hard this year until the 2025 / 2024 December and try my best22:05
sarnoldheh, when I started, it was very common to use someone else's computer -- I'd dial in to my ISP and use the stock vi on the thing22:05
sarnoldI interact with two android phones, one android table, very regularly, and have a handful of replaced android phones sitting around; I've got three ubuntu computers powered on at the moment; I've got one powered down right now because it generates a lot of heat, and two more that are less useful than I would like :(22:06
sarnoldi've also got an ubuntu VM hosted in AWS for irc22:07
hwpplayer1cool22:08
hwpplayer1Do you have Ubuntu Pro22:08
hwpplayer1I was using 22.04 LTS with Pro22:08
hwpplayer1I'll be back soon to Ubuntu with the latest LTS22:10
hwpplayer1Now I run Debian, my goal is to learn the Debian infrastructure the deb packaging I mean and the other things22:11
hwpplayer1I run Emacs 29.4 with backports 22:11
hwpplayer1brb22:13
sarnoldyes, I've got ubuntu pro enabled on most of my computers22:13
hwpplayer1thanks22:13
hwpplayer1That's good to hear22:13
sarnoldI use the kernel livepatches on some of them, and universe updates on all of them22:13
hwpplayer1I'm very interested in livepatch22:13
hwpplayer1Did canonical start after Red Hat and Suse22:14
sarnoldoh right, kernelnewbies .. it used to be much more active. there's still conversations in the irc channel; I haven't been on the mail list for a very long time, I'm not sure how healthy that is22:14
sarnoldyes22:14
sarnoldwe got to benefit from their efforts, because we got to use the livepatching facility that was upstreamed into the kernel, while I believe both redhat and suse were  using their own out-of-tree functionality that formed the basis of what got upstreamed22:14
hwpplayer1But in my opinion Ubuntu is at the center between enterprise companies and individuals so it is better for me22:15
hwpplayer1a better karma22:15
sarnoldi'm not sure if red hat and suse are still using their own things or if they've been able to switch to the upstream implementation; I expect the process of preparing updates is pretty similar for all three approaches22:15
hwpplayer1understood22:16
hwpplayer1What do you think the position in the market of the Canonical's Ubuntu ? Like I tried to tell22:16
hwpplayer1A better karma between companies and individuals22:17
hwpplayer1Also has a phone still supported by UBports22:17
hwpplayer1volla phone etc22:17
sarnoldubports is completely separate from canonical these days22:17
hwpplayer1I'm interested in Purism also which is GTK and Debian based22:17
sarnolda group of enthusiasts have kept it alive22:18
hwpplayer1yes I know22:18
sarnoldokay good good22:18
hwpplayer1But That thing ubuntu-touch still lives despite canonical left the project22:18
sarnoldubuntu is popular with both enterprises and enthusiasts, largely because a lot of things "just work"22:18
hwpplayer1yes22:18
sarnoldsome very demanding workloads like SAP or Oracle DB might be hyper-tuned for RHEL or SLES22:18
hwpplayer1understood22:19
sarnoldand some very demanding enthusiasts might be a better fit for arch :)22:19
hwpplayer1I don't know about arch22:19
hwpplayer1I didn't try it22:19
sarnoldour packages come through debian unstable before they enter our devel release, and every six months we ship it. arch may do a better job of providing very fresh versions of a wider variety of packages.22:19
sarnoldI've never tried it either :( I think we'd like it, if only we'd try it, hehe22:20
hwpplayer1yes maybe blackarch :D22:20
hwpplayer1tons of tools22:20
hwpplayer1do you contribute to any spesific security tool like wireshark or any other /22:21
sarnoldapparmor, though it's been a while since I contributed in any significant way22:21
hwpplayer1hmm let me check the source code22:24
hwpplayer1do you please give the repository link sarnold ?22:26
hwpplayer1is it on GitLab ? 22:26
hwpplayer1https://gitlab.com/apparmor/apparmor22:26
hwpplayer1https://apparmor.net/22:28
hwpplayer1also22:28
hwpplayer1okay cool Thanks22:29
sarnoldhwpplayer1: heh yeah that's the one ;)22:34
hwpplayer1great22:40
hwpplayer1Do you have Zram on your Ubuntu machines ?22:40
hwpplayer1I have 8(7.6 when calculated) GB RAM and 70 GB Zram 22:41
hwpplayer176 or 70 idk22:41
hwpplayer1:D22:41
sarnoldzounds :)22:44
sarnoldI don't think I've got zram or zswap configured22:44
sarnoldI keep meaning to give it a try but it's never a top priority for me22:44
oerhekswhat if system borks ans zram cannot write a log?22:45
hwpplayer1I configured it for mobile development like Android Qt mobile and Ubuntu Touch22:45
oerheksans/and22:45
hwpplayer1I am totally new to this tech22:45
Juestexcept when ubuntu constantly has issues, particularly livecds whereas debian is fine22:48
hwpplayer1I run Debian 1222:48
hwpplayer1I think that it crashes when GNOME extensions are enabled22:49
hwpplayer1Same for Ubuntu 22.04 22:49
Juestyeah umm, this is a channel to discuss ubuntu security matters, do you have a on topic question?22:49
hwpplayer1system crashes are on topic ?22:50
Juestsounds like #linux or #ubuntu is a better fit for you. system crashes are more a support thing not security. 22:50
hwpplayer1thanks22:51
hwpplayer1I'll stay here to be connected22:51
oerheks'constantly has issues' .. lets talk about that22:51
Juestwell, you stay connected to the network server if you leave a channel22:51
hwpplayer1I mean I'll read this channel's messages22:52
Juestoerheks: im more talking past experiences really, its not as bad nowadays and frankly i do not interact too often with the live environment22:52
hwpplayer1It is a buffer in Emacs22:52
Juestcool22:52
oerheksif one needs a live environment, use a daily build22:53
Juestoh so for installation/rescue/live is it preferred to use the bleeding edge isos?22:53
Juestor what did you mean by daily build?22:54
oerhekshttps://cdimage.ubuntu.com/daily-live/current/ for desktop, sure you can find server and such22:55
Juestthanks, oddly enough this is not recommended/noted anywhere22:56
oerheksone must have a reason to do so, i guess22:58
Juesti see, i mean its not really advertised or anything, but good to know there's that choice for those who dont mind recycling isos22:58
Juesthmm, cdimage.ubuntu seems to only contain desktop stuff?22:58
Juestoh is probably in ubuntu-server22:59
Juesti see that the spins folders are there on the root22:59
oerheksyes even cloud images https://cloud-images.ubuntu.com/buildd/daily/22:59
sarnoldheh yeah we've got downloads scattered over so many domains :/22:59
oerheksbut that is more likely23:00
sarnolds/domains/subdomains/23:00
Juestoerheks: interesting, the buildd folder is not exposed in the homepage of cloud-images and it says in the description that its technically not supported for bug reports23:01
Juestand oci is empty23:02
oerheksi think technically it is, as it contains the latest updates23:02
Juestanyways, is there a better channel for this discussion other than here and ubuntu?23:02
oerheksthis channel is fine23:02
Juestthe buildd folder says: These are not general-purpose images and their usage is not supported outside of Multipass or Launchpad. Bugs found on those platforms should be filed in the cloud-images project on Launchpad.net.23:02
oerheksjups, as regular update issue23:03
Juestoh hmm, i see23:03
Juestah so its only supported in rolling update scenarios?23:04
oerheksone can see this as rolling, which is not true, still holding on to stable packages for lts23:05
Juestyeah i understand that, sorry for the misnomer23:05
oerheksjust bug fixes, not new features23:05
oerheksno, your question is valid.23:05
Juesthence why i said rolling updates not release23:05
Juesta rolling model for updates not for releases which the latter is more popular/common23:06
oerheksi used to wanna run latest, but i am back to solid lts23:06
Juestah interesting23:06
oerheks22.04 for now23:06
Juesthey at least its the little corner to chat with ubuntu people outside of the support channels :D23:06
Juestappreciate the attention and time ^^23:07
oerhekssometimes it is minutes, sometimes it takes a year to meet and greet, Juest 23:07
Juesttrue23:07
oerhekshave fun!23:07
Juestnice to meet you likewise23:07
Juesthmmmm just remained thinking....23:08
oerheksin shortl; i love a good argument23:08
Juestoh btw i got the ubuntu installation booted in a isolated container with systemd init with success on connecting to systemd through a chroot after entering the namespace23:09
Jueston a different non-systemd distro23:09
sarnoldwow :)23:09
sarnoldI thought that sounded like a pretty good challenge23:09
Juestbut im facing permission issues when it comes to processes creating a user namespace23:09
Juestyeah it was sarnold :)23:09
oerheksi read the suggestions of phogg and tingo23:10
hwpplayer1sarnold: Can I pm you :23:11
oerheks still not sure it can be done23:11
Juestthe better help came from the #systemd channel :)23:11
Juestit can be done, you just have to be careful and mount everything correctly23:11
oerheksyes, but there are 2 parts missing something.23:11
Juestoh? which?23:11
Juestthe issue is that if i use a isolated user namespace there's no privileges, causing cgroups to fail to be created, and basically no users other than the root mapping23:13
oerhekstherefore one cannot mount anything in it.. yet23:14
Juestsomething i wasnt doing before is making brand new mounts for /dev (shm, pts), and /run and /tmp23:14
Juestthe mount issue is fixed by adding --mount-proc, and the privileges can be partially resolved by mapping root to have privileges23:15
Juestoerheks: you drop in a shell, do the necessary mounts and exec systemd and that works23:15
oerheksthere must be a trick, avoiding or capsulation of namespace23:15
oerheksno idea, this goes over my heas :-D23:16
Juestonly ipc, pid, mount and uts are isolated23:16
Juestbefore i was doing -i<args> instead of each separate namespace spec23:17
Juestso thats one part of the issue lol23:17
Juestanyways23:17
oerheks each separate namespace spec .. ? from host and vm ?23:18
Juestthis is not a vm23:18
oerheksa backup23:18
Juestnor runc based23:18
Juestits a full-on linux partition install of ubuntu that i have23:18
Juestim doing this method because i dont want to reboot the whole computer to perform updates23:18
sarnoldhwpplayer1: sure23:19
oerheksyou made a genuine copy, now trying to keep it updated, without systemd involved, i understand23:19
Juestand the reason why chroot doesnt cut it is because i need the systemd stack to run snapd socket properly for the sake of running snap refresh23:19
Juestoerheks: its not a copy lol, just a ubuntu installation that actually can boot on the same computer without issues :)23:20
Juestim not trying to kexec (replace the booted system) nor use more resources through virtualization or container runtimes23:20
oerheksai, snap refresh.. time to run your own snap mirror23:20
Juestthe problem is that snap cannot connect to snapd23:21
oerheksthat gives double security23:21
Juestalso because of the chroot and not mounting /tmp, /dev, /run i have data in the partition on those folders lol23:21
Juestheh, fun idea23:22
Juesti was seeing issues where systemd sockets couldn't be reachable because it was a incoming private connection from a unknown client therefore not allowing it23:23
Juestto enter the environment outside of the unshare shell once systemd is executed i have to chroot inside after running nsenter23:23
oerhekssudo journalctl --no-pager -u snapd23:24
oerhekshttps://snapcraft.io/docs/fix-common-issues23:24
sarnoldJuest: hah, that sounds right23:24
Juestnow i am correctly able to connect to systemd23:24
oerheksyes, supposed so23:24
Juestbut the problem is that units do not have permission to use the user namespace23:24
oerheksso you need to, snapd ?23:25
oerhekserr, question is: do you need to?23:25
Juestoerheks: yes, i want to get snapd up and running because its required by snap to do any operations23:25
sarnoldlxd can get 'ubuntu' things working in containers, so there's got to be a way for you to construct a similar enough environment by hand23:26
Juestthe whole reason im into this is because i wanted to do snap refresh23:26
Juestsarnold: sure, maybe i could get somewhere with lxc, im not using lxd because its not light23:26
Juesti have lxc but im not sure how to tell it to containerize a entire partition and boot that23:26
Juestdoing a volume sounds very risky because it could wipe it23:27
sarnoldtar it up, ask it to boot the tarball? copy over the changed files by hand?23:27
Juesti dont have storage for that23:27
Juesti feel more comfortable with the unshare "example utility"23:28
Juestokay im back to the same issue23:31
Juestfailed to get properties: transport endpoint is not connected23:31
Juesthmmmm23:32
Juestoh well23:32
Juestoh lol i forgot to enter in the pid namespace23:33
sarnoldJuest: maybe run dmesg -w ...23:33
sarnolddoorbell23:33
oerheksfood?23:33
oerheks01:33 here23:34
oerheksoops security23:34
Juestoh lol23:35
Juestsarnold: i forgot to enter in the systemd namespace, i was in the unshare namespace instead :P23:35
oerhekshostname should not be of importance, unless ssh certs?23:36
Juestissue now is dns resolver23:36
Juestokay23:39
Juestnetworkmanager has limited connectivity23:39
Juesthmmmmm23:39
Juestoh well23:39
Juestoerheks, sarnold, where would it be preferred to discuss this in?23:39
sarnoldJuest: aha, awesome! hard to know, maybe someone else in #ubuntu would have more ideas, but namespacing is kind of a security-ish thing? maybe #lxcontainers would have folks with more direct container experience? this is probably fine23:47
sarnoldoerheks: heh, a new exercise bike23:47
Juest:D23:48
Juesti see23:48
Juestwell, its related because the target is a ubuntu system :P23:48
Juestyou mean #lxc maybe?23:49
Juesti guess that #linux is fine as well23:50
oerhekssure, post on stack23:51
Juestanother little issue, it seems the gui started up but i dont see it, i should check the console23:51
Juestwell23:55
Juestim having a issue refreshing the snap23:55
Juestill check the link23:56

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