remctl is a simple RPC mechanism using Kerberos GSS-API authentication (or
SSH authentication).
The primary change in this release, and the reason for the release, is to
add support for PCRE2, the latest version of the Perl-Compatible Regular
Expression library, since PCRE1 is now deprecated.
This release also improves some documentation, marks the allocation
functions in the C client library with deallocation functions for GCC 11,
and fixes some issues with the Python and Ruby bindings that were spotted
by Ken Dreyer, as well as the normal update of portability support.
I still do plan to move the language bindings into separate packages,
since this will make it easier to upload them to their per-language module
repositories and that, in turn, will make them easier to use, but this
version doesn't have those changes. I wanted to flush the portability
changes and PCRE update out first before starting that project.
You can get the latest version from the remctl distribution page.
I don't particularly like it when people announce their personal
projects on their blog, but I'm making an exception for this one,
because it's a little special for me.
You see, I have just released Wallabako 1.4.0 (and a quick,
mostly irrelevant 1.4.1 hotfix) today. It's the first release of
that project in almost 3 years (the previous was 1.3.1, before
the pandemic).
The other reason I figured I would mention it is that I have almost
never talked about Wallabako on this blog at all, so many of my
readers probably don't even know I sometimes meddle with in
Golang which surprises even me sometimes.
What's Wallabako
Wallabako is a weird little program I designed to read articles
on my E-book reader. I use it to spend less time on the computer: I
save articles in a read-it-later app named Wallabag (hosted by a
generous friend), and then Wallabako connects to that app, downloads
an EPUB version of the book, and then I can read it on the device
directly.
When I'm done reading the book, Wallabako notices and sets the article
as read in Wallabag. I also set it to delete the book locally, but you
can actually configure to keep those books around forever if you feel
like it.
Wallabako supports syncing read status with the built-in Kobo
interface (called "Nickel"), Koreader and Plato. I happen to
use Koreader for everything nowadays, but it should work equally well
on the others.
Wallabako is actually setup to be started by udev when there's a
connection change detected by the kernel, which is kind of a gross
hack. It's clunky, but actually works and I thought for a while about
switching to something else, but it's really the easiest way to go,
and that requires the less interaction by the user.
Why I'm (still) using it
I wrote Wallabako because I read a lot of articles on the
internet. It's actually most of my readings. I read about 10 books a
year (which I don't think is much), but I probably read more in terms
of time and pages in Wallabag. I haven't actually made the math, but I
estimate I spend at least double the time reading articles than I
spend reading books.
If I wouldn't have Wallabag, I would have hundreds of tabs open in my
web browser all the time. So at least that problem is easily solved:
throw everything in Wallabag, sort and read later.
If I wouldn't have Wallabako however, I would be either spend that
time reading on the computer -- which I prefer to spend working on
free software or work -- or on my phone -- which is kind of better,
but really cramped.
I had stopped (and developing) Wallabako for a while, actually, Around
2019, I got tired of always read those technical articles (basically
work stuff!) at home. I realized I was just not "reading" (as in
books! fiction! fun stuff!) anymore, at least not as much as I
wanted.
So I tried to make this separation: the ebook reader is for cool book
stuff. The rest is work. But because I had the Wallabag Android app on
my phone and tablet, I could still read those articles there, which I
thought was pretty neat. But that meant that I was constantly looking
at my phone, which is something I'm generally trying to avoid, as it
sets a bad example for the kids (small and big) around me.
Then I realized there was one stray ebook reader lying around at
home. I had recently bought a Kobo Aura
HD to read books, and I like that
device. And it's going to stay locked down to reading books. But
there's still that old battered Kobo Glo HD reader lying around, and
I figured I could just borrow it to read Wallabag articles.
What is this new release
But oh boy that was a lot of work. Wallabako was kind of a mess: it
was using the deprecated go dep tool, which lost the battle with
go mod. Cross-compilation was broken for older devices, and I had
to implement support for Koreader.
go mod
So I had to learn go mod. I'm still not sure I got that part right:
LSP is yelling at me because it can't find the imports, and I'm
generally just "YOLO everythihng" every time I get anywhere close
to it. That's not the way to do Go, in general, and not how I like to
do it either.
But I guess that, given time, I'll figure it out and make it work for
me. It certainly works now. I think.
Cross compilation
The hard part was different. You see, Nickel uses SQLite to store
metadata about books, so Wallabako actually needs to tap into that
SQLite database to propagate read status. Originally, I just linked
against some sqlite3 library I found lying around. It's basically
a wrapper around the C-based SQLite and generally works fine. But that
means you actually link your Golang program against a C library. And
that's when things get a little nutty.
If you would just build Wallabag naively, it would fail when deployed
on the Kobo Glo HD. That's because the device runs a really old
kernel: the prehistoric Linux kobo 2.6.35.3-850-gbc67621+ #2049
PREEMPT Mon Jan 9 13:33:11 CST 2017 armv7l GNU/Linux. That was built
in 2017, but the kernel was actually released in 2010, a whole 5
years before the Glo HD was released, in 2015 which is kind of
outrageous. and yes, that is with the latest firmware release.
My bet is they just don't upgrade the kernel on those things, as the
Glo was probably bought around 2017...
In any case, the problem is we are cross-compiling here. And Golang is
pretty good about cross-compiling, but because we have C in there,
we're actually cross-compiling with "CGO" which is really just Golang
with a GCC backend. And that's much, much harder to figure out because
you need to pass down flags into GCC and so on. It was a nightmare.
That's until I found this outrageous "little" project called
modernc.org/sqlite. What that thing does (with a hefty does of
dependencies that would make any Debian developer recoil in horror) is
to transpile the SQLite C source code to Golang. You read that
right: it rewrites SQLite in Go. On the fly. It's nuts.
But it works. And you end up with a "pure go" program, and that thing
compiles much faster and runs fine on older kernel.
I still wasn't sure I wanted to just stick with that forever, so I
kept the old sqlite3 code around, behind a compile-time tag. At the
top of the nickel_modernc.go file, there's this magic string:
//+build !sqlite3
And at the top of nickel_sqlite3.go file, there's this magic string:
//+build sqlite3
So now, by default, the modernc file gets included, but if I pass
--tags sqlite3 to the Go compiler (to go install or whatever), it
will actually switch to the other implementation. Pretty neat stuff.
Koreader port
The last part was something I was hesitant in doing for a long time,
but that turned out to be pretty easy. I have basically switch to
using Koreader to read everything. Books, PDF, everything goes through
it. I really like that it stores its metadata in sidecar files: I
synchronize all my books with Syncthing which means I can carry
my read status, annotations and all that stuff without having to think
about it. (And yes, I installed Syncthing on my Kobo.)
The koreader.go port was less than 80 lines, and I could even
make a nice little test suite so that I don't have to redeploy
that thing to the ebook reader at every code iteration.
I had originally thought I should add some sort of graphical interface
in Koreader for Wallabako as well, and had requested that feature
upstream. Unfortunately (or fortunately?), they took my idea and
just ran with it. Some courageous soul actually wrote a full
Wallabag plugin for koreader, in Lua of course.
Compared to the Wallabako implementation however, the koreader plugin
is much slower, probably because it downloads articles serially
instead of concurrently. It is, however, much more usable as the user
is given a visible feedback of the various steps. I still had to
enable full debugging to diagnose a problem (which was that I
shouldn't have a trailing slash, and that some special characters
don't work in passwords). It's also better to write the config file
with a normal text editor, over SSH or with the Kobo mounted to your
computer instead of typing those really long strings over the kobo.
There's no sample config file which makes that harder but a
workaround is to save the configuration with dummy values and fix them
up after. Finally I also found the default setting ("Remotely delete
finished articles") really dangerous as it can basically lead to data
loss (Wallabag article being deleted!) for an unsuspecting user...
So basically, I started working on Wallabag again because the koreader
implementation of their Wallabag client was not up to spec for me. It
might be good enough for you, but I guess if you like Wallabako, you
should thank the koreader folks for their sloppy implementation, as
I'm now working again on Wallabako.
Ship a lot of fixes that have accumulated in the 3 years since the
last release.
Features:
add timestamp and git version to build artifacts
cleanup and improve debugging output
switch to pure go sqlite implementation, which helps
update all module dependencies
port to wallabago v6
support Plato library changes from 0.8.5+
support reading koreader progress/read status
Allow containerized builds, use gomod and avoid GOPATH hell
overhaul Dockerfile
switch to go mod
Documentation changes:
remove instability warning: this works well enough
README: replace branch name master by main in links
tweak mention of libreoffice to clarify concern
replace "kobo" references by "nickel" where appropriate
make a section about related projects
mention NickelMenu
quick review of the koreader implementation
Bugfixes:
handle errors in http request creation
Use OutputDir configuration instead of hardcoded wallabako paths
do not noisily fail if there's no entry for book in plato
regression: properly detect read status again after koreader (or
plato?) support was added
How do I use this?
This is amazing. I can't believe someone did something that
awesome. I want to cover you with gold and Tesla cars and fresh
water.
You're weird please stop. But if you want to use Wallabako, head over
to the README file which has installation instructions. It
basically uses a hack in Kobo e-readers that will happily overwrite
their root filesystem as soon as you drop this file named
KoboRoot.tgz in the .kobo directory of your e-reader.
Note that there is no uninstall procedure and it messes with the
reader's udev configuration (to trigger runs on wifi
connect). You'll also need to create a JSON configuration file
and configure a client in Wallabag.
And if you're looking for Wallabag hosting, Wallabag.it offers a
14-day free trial. You can also, obviously, host it yourself. Which is
not the case for Pocket, even years after Mozilla bought the
company. All this wouldn't actually be necessary if Pocket was
open-source because Nickel actually ships with a Pocket client.
Shame on you, Mozilla. But you still make an awesome browser, so keep
doing that.
Welcome to the April 2022 report from the Reproducible Builds project! In these reports, we try to summarise the most important things that we have been up to over the past month. If you are interested in contributing to the project, please take a few moments to visit our Contribute page on our website.
News
Cory Doctorow published an interesting article this month about the possibility of Undetectable backdoors for machine learning models. Given that machine learning models can provide unpredictably incorrect results, Doctorow recounts that there exists another category of adversarial examples that comprise a gimmicked machine-learning input that, to the human eye, seems totally normal but which causes the ML system to misfire dramatically that permit the possibility of planting undetectable back doors into any machine learning system at training time .
Chris Lamb published two supporter spotlights on our blog: the first about Amateur Radio Digital Communications (ARDC) and the second about the Google Open Source Security Team (GOSST).
Piergiorgio Ladisa, Henrik Plate, Matias Martinez and Olivier Barais published a new academic paper titled A Taxonomy of Attacks on Open-Source Software Supply Chains (PDF):
This work proposes a general taxonomy for attacks on open-source supply chains, independent of specific programming languages or ecosystems, and covering all supply chain stages
from code contributions to package distribution. Taking the form of an attack tree, it covers 107 unique vectors, linked to 94 real-world incidents, and mapped to 33 mitigating safeguards.
This dissertation starts from the first link in the software supply chain, developers . Since many developers do not update their vulnerable software libraries, thus exposing the user of their code to security risks. To understand how they choose, manage and update the libraries, packages, and other Open-Source Software (OSS) that become the building blocks of companies completed products consumed by end-users, twenty-five semi-structured interviews were conducted with developers of both large and small-medium enterprises in nine countries. All interviews were transcribed, coded, and analyzed according to applied thematic analysis
Upstream news
Filippo Valsorda published an informative blog post recently called How Go Mitigates Supply Chain Attacks outlining the high-level features of the Go ecosystem that helps prevent various supply-chain attacks.
There was new/further activity on a pull request filed against openssl by Sebastian Andrzej Siewior in order to prevent saved CFLAGS (which may contain the -fdebug-prefix-map=<PATH> flag that is used to strip an arbitrary the build path from the debug info if this information remains recorded then the binary is no longer reproducible if the build
directory changes.
Events
The Linux Foundation s SupplyChainSecurityCon, will take place June 21st 24th 2022, both virtually and in Austin, Texas. Long-time Reproducible Builds and openSUSE contributor Bernhard M. Wiedemann learned that he had his talk accepted, and will speak on Reproducible Builds: Unexpected Benefits and Problems on June 21st.
There will be an in-person Debian Reunion in Hamburg, Germany later this year, taking place from 23 30 May. Although this is a Debian event, there will be some folks from the broader Reproducible Builds community and, of course, everyone is welcome. Please see the event page on the Debian wiki for more information. 41 people have registered so far, and there s approx 10 on-site beds still left.
The minutes and logs from our April 2022 IRC meeting have been published. In case you missed this one, our next IRC meeting will take place on May 31st at 15:00 UTC on #reproducible-builds on the OFTC network.
Debian
Roland Clobus wrote another in-depth status update about the status of live Debian images, summarising the current situation that all major desktops build reproducibly with bullseye, bookworm and sid, including the Cinnamon desktop on bookworm and sid, but at a small functionality cost: 14 words will be incorrectly abbreviated . This work incorporated:
Reporting an issue about unnecessarily modified timestamps in the daily Debian installer images. []
Reporting a bug against the debian-installer: in order to use a suitable kernel version. (#1006800)
Reporting a bug in: texlive-binaries regarding the unreproducible content of .fmt files. (#1009196)
Adding hacks to make the Cinnamon desktop image reproducible in bookworm and sid. []
Added a script to rebuild a live-build ISO image from a given timestamp. [
Upstream patches
The Reproducible Builds project detects, dissects and attempts to fix as many currently-unreproducible packages as possible. We endeavour to send all of our patches upstream where appropriate. This month, we wrote a large number of such patches, including:
diffoscopediffoscope is our in-depth and content-aware diff utility. Not only can it locate and diagnose reproducibility issues, it can provide human-readable diffs from many kinds of binary formats. This month, Chris Lamb prepared and uploaded versions 210 and 211 to Debian unstable, as well as noticed that some Python .pyc files are reported as data, so we should support .pyc as a fallback filename extension [].
In addition, Mattia Rizzolo disabled the Gnumeric tests in Debian as the package is not currently available [] and dropped mplayer from Build-Depends too []. In addition, Mattia fixed an issue to ensure that the PATH environment variable is properly modified for all actions, not just when running the comparator. []
Testing framework
The Reproducible Builds project runs a significant testing framework at tests.reproducible-builds.org, to check packages and other artifacts for reproducibility. This month, the following changes were made:
Daniel Golle:
Prefer a different solution to avoid building all OpenWrt packages; skip packages from optional community feeds. []
Holger Levsen:
Detect Python deprecation warnings in the node health check. []
Detect failure to build the Debian Installer. []
Mattia Rizzolo:
Install disorderfs for building OpenWrt packages. []
Don t build all packages whilst the core packages are not yet reproducible. []
Add a missing RUN directive to node_cleanup. []
Be less verbose during a toolchain build. []
Use disorderfs for rebuilds and update the documentation to match. [][][]
Roland Clobus:
Publish the last reproducible Debian ISO image. []
Use the rebuild.sh script from the live-build package. []
Lastly, node maintenance was also performed by Holger Levsen [][].
If you are interested in contributing to the Reproducible Builds project, please visit our Contribute page on our website. However, you can get in touch with us via:
We are very pleased to announce that Google
has committed to support DebConf22 as a
Platinum sponsor. This is the third year in a row that Google is
sponsoring The Debian Conference with the higher tier!
Google is one of the largest technology companies in the
world, providing a wide range of Internet-related services and products
as online advertising technologies, search, cloud computing, software, and hardware.
Google has been supporting Debian by sponsoring DebConf since more than
ten years, and is also a Debian partner sponsoring parts
of Salsa's continuous integration infrastructure
within Google Cloud Platform.
With this additional commitment as Platinum Sponsor for DebConf22,
Google contributes to make possible our annual conference,
and directly supports the progress of Debian and Free Software
helping to strengthen the community that continues to collaborate on
Debian projects throughout the rest of the year.
Thank you very much Google, for your support of DebConf22!
Become a sponsor too!
DebConf22 will take place from July 17th to
24th, 2022 at the Innovation and Training Park (ITP)
in Prizren, Kosovo, and will be preceded by DebCamp, from July 10th to 16th.
And DebConf22 is still accepting sponsors!
Interested companies and organizations may contact the DebConf team
through sponsors@debconf.org, and
visit the DebConf22 website at
https://debconf22.debconf.org/sponsors/become-a-sponsor.
I've been having reasonable success with time blocking, a technique
I learned from Cal Newport's writings,
in particular Deep Work. I'd been doing it on paper for a while, but
I wanted to try and move to a digital solution.
There's a cottage
industry of people
making (and selling) various types of diary and planner as PDF files for use on
tablets such as the Remarkable. Some of these use
PDF hyperlinks to greatly improve navigating around. This one from Clou Media
is particularly
good, but I found that I wanted something slightly different from what I
could find out there, so I decided to build my own.
I explored a couple of different approaches for how to do this. One was Latex,
and here's one example of a latex-based
planner, but I decided against as I
spend too much time wrestling with it for my PhD work already.
Another approach might have been Pandoc, but as far as I
could tell its PDF pipeline went via Latex, so I thought I might as well cut out
the middleman.
Eventually I stumbled across tools to build PDFs from HTML, via "CSS Paged Media".
This appealed, because I've done plenty of HTML generation. print-css.rocks
is a fantastic resource to explore the print-specific CSS features.
Weasyprint is a fantastic open source tool to convert
appropriately-written HTML/CSS into PDF.
Finally I wanted to use a templating system to take shortcuts on writing HTML.
I settled for embedded Ruby, which is something I haven't touched in over a
decade. This was a relatively simple project and I found it surprisingly fun.
The results are available on GitHub: https://github.com/jmtd/planner. Right
now, you get exactly what I have described. But my next plan is to add support
for re-generating a planner, incorporating new information: pulling diary
info from iCal, and any annotations made (such as with the Remarkable tablet)
on top of the last generation and preserving them on the next.
Interesting Times is the seventeenth Discworld novel and certainly
not the place to start. At the least, you will probably want to read
The Colour of Magic and
The Light Fantastic before this book,
since it's a sequel to those (although Rincewind has had some intervening
adventures).
Lord Vetinari has received a message from the Counterweight Continent, the
first in ten years, cryptically demanding the Great Wizzard be sent
immediately.
The Agatean Empire is one of the most powerful states on the Disc.
Thankfully for everyone else, it normally suits its rulers to believe that
the lands outside their walls are inhabited only by ghosts. No one is
inclined to try to change their minds or otherwise draw their attention.
Accordingly, the Great Wizard must be sent, a task that Vetinari
efficiently delegates to the Archchancellor. There is only the small
matter of determining who the Great Wizzard is, and why it was spelled
with two z's.
Discworld readers with a better memory than I will recall Rincewind's hat.
Why the Counterweight Continent would demanding a wizard notorious for his
near-total inability to perform magic is a puzzle for other people.
Rincewind is promptly located by a magical computer, and nearly as
promptly transported across the Disc, swapping him for an unnecessarily
exciting object of roughly equivalent mass and hurling him into an
unexpected rescue of Cohen the Barbarian. Rincewind predictably reacts by
running away, although not fast or far enough to keep him from being
entangled in a glorious popular uprising. Or, well, something that has
aspirations of being glorious, and popular, and an uprising.
I hate to say this, because Pratchett is an ethically thoughtful writer to
whom I am willing to give the benefit of many doubts, but this book was
kind of racist.
The Agatean Empire is modeled after China, and the Rincewind books tend to
be the broadest and most obvious parodies, so that was already a recipe
for some trouble. Some of the social parody is not too objectionable,
albeit not my thing. I find ethnic stereotypes and making fun of
funny-sounding names in other languages (like a city named Hunghung) to be
in poor taste, but Pratchett makes fun of everyone's names and cultures
rather equally. (Also, I admit that some of the water buffalo jokes,
despite the stereotypes, were pretty good.) If it had stopped there, it
would have prompted some eye-rolling but not much comment.
Unfortunately, a significant portion of the plot depends on the idea that
the population of the Agatean Empire has been so brainwashed into
obedience that they have a hard time even imagining resistance, and even
their revolutionaries are so polite that the best they can manage for
slogans are things like "Timely Demise to All Enemies!" What they need
are a bunch of outsiders, such as Rincewind or Cohen and his gang. More
details would be spoilers, but there are several deliberate uses of
Ankh-Morpork as a revolutionary inspiration and a great deal of narrative
hand-wringing over how awful it is to so completely convince people they
are slaves that you don't need chains.
There is a depressingly tedious tendency of western writers, even
otherwise thoughtful and well-meaning ones like Pratchett, to adopt a
simplistic ranking of political systems on a crude measure of freedom.
That analysis immediately encounters the problem that lots of people who
live within systems that rate poorly on this one-dimensional scale seem
inadequately upset about circumstances that are "obviously" horrific
oppression. This should raise questions about the validity of the
assumptions, but those assumptions are so unquestionable that the writer
instead decides the people who are insufficiently upset about their lack
of freedom must be defective. The more racist writers attribute that
defectiveness to racial characteristics. The less racist writers, like
Pratchett, attribute that defectiveness to brainwashing and systemic evil,
which is not quite as bad as overt racism but still rests on a foundation
of smug cultural superiority.
Krister Stendahl, a bishop of the Church of Sweden, coined three famous
rules for understanding other religions:
When you are trying to understand another religion, you should ask the
adherents of that religion and not its enemies.
Don't compare your best to their worst.
Leave room for "holy envy."
This is excellent advice that should also be applied to politics. Most
systems exist for some reason. The differences from your preferred system
are easy to see, particularly those that strike you as horrible. But
often there are countervailing advantages that are less obvious, and those
are more psychologically difficult to understand and objectively analyze.
You might find they have something that you wish your system had, which
causes discomfort if you're convinced you have the best political system
in the world, or are making yourself feel better about the abuses of your
local politics by assuring yourself that at least you're better than those
people.
I was particularly irritated to see this sort of simplistic stereotyping
in Discworld given that Ankh-Morpork, the setting of most of the Discworld
novels, is an authoritarian dictatorship. Vetinari quite capably
maintains his hold on power, and yet this is not taken as a sign that the
city's inhabitants have been brainwashed into considering themselves
slaves. Instead, he's shown as adept at maintaining the stability of a
precarious system with a lot of competing forces and a high potential for
destructive chaos. Vetinari is an awful person, but he may be better than
anyone who would replace him. Hmm.
This sort of complexity is permitted in the "local" city, but as soon as
we end up in an analog of China, the rulers are evil, the system lacks any
justification, and the peasants only don't revolt because they've been
trained to believe they can't. Gah.
I was muttering about this all the way through Interesting Times,
which is a shame because, outside of the ham-handed political plot, it has
some great Pratchett moments. Rincewind's approach to any and all danger
is a running (sorry) gag that keeps working, and Cohen and his gang of
absurdly competent decrepit barbarians are both funnier here than they
have been in any previous book and the rare highly-positive portrayal of
old people in fantasy adventures who are not wizards or crones. Pretty
Butterfly is a great character who deserved to be in a better plot. And I
loved the trouble that Rincewind had with the Agatean tonal language,
which is an excuse for Pratchett to write dialog full of frustrated
non-sequiturs when Rincewind mispronounces a word.
I do have to grumble about the Luggage, though. From a world-building
perspective its subplot makes sense, but the Luggage was always the best
character in the Rincewind stories, and the way it lost all of its
specialness here was oddly sad and depressing. Pratchett also failed to
convince me of the drastic retcon of The Colour of Magic and
The Light Fantastic that he does here (and which I can't talk about
in detail due to spoilers), in part because it's entangled in the
orientalism of the plot.
I'm not sure Pratchett could write a bad book, and I still enjoyed reading
Interesting Times, but I don't think he gave the politics his
normal care, attention, and thoughtful humanism. I hope later books in
this part of the Disc add more nuance, and are less confident and
judgmental. I can't really recommend this one, even though it has some
merits.
Also, just for the record, "may you live in interesting times" is
not
a Chinese curse. It's an English saying that likely was attributed to
China to make it sound exotic, which is the sort of landmine that
good-natured parody of other people's cultures needs to be wary of.
Followed in publication order by Maskerade, and in Rincewind's
personal timeline by The Last Continent.
Rating: 6 out of 10
If you intend to apply for a
DebConf22 bursary and/or
submit an event proposal and have not yet
done so, please proceed as soon as possible!
Bursary applications for DebConf22 will be accepted until May 1st at 23:59 UTC.
Applications submitted after this deadline will not be considered.
You can apply for a bursary when you register
for the conference.
Remember that giving a talk or organising an event is considered towards your bursary;
if you have a submission to make, submit it even if it is only sketched-out.
You will be able to detail it later. DebCamp plans can be entered in the usual
Sprints page at the Debian wiki.
Please make sure to double-check your accommodation choices (dates and venue).
Details about accommodation arrangements can be found on the
accommodation page.
Event proposals will be accepted until May 1st at 23:59 UTC too.
Events are not limited to traditional presentations or informal sessions (BoFs):
we welcome submissions of tutorials, performances, art installations, debates,
or any other format of event that you think would be of interest to the Debian
community.
Regular sessions may either be 20 or 45 minutes long (including time for
questions), other kinds of sessions (workshops, demos, lightning talks, and so
on) could have different durations. Please choose the most suitable duration for
your event and explain any special requests. You can submit it
here.
The the 23rd edition of DebConf will take place
from July 17th to 24th, 2022 at the
Innovation and Training Park (ITP) in Prizren,
Kosovo, and will be preceded by DebCamp, from July 10th to 16th.
See you in Prizren!
I've been using sbuild for a while to build my Debian packages,
mainly because it's what is used by the Debian autobuilders, but
also because it's pretty powerful and efficient. Configuring it just
right, however, can be a challenge. In my quick Debian development
guide, I had a few pointers on how to
configure sbuild with the normal schroot setup, but today I finished
a qemu based configuration.
Why
I want to use qemu mainly because it provides better isolation than a
chroot. I sponsor packages sometimes and while I typically audit
the source code before building, it still feels like the extra
protection shouldn't hurt.
I also like the idea of unifying my existing virtual machine setup
with my build setup. My current VM is kind of all over the place:
libvirt, vagrant, GNOME Boxes, etc?). I've been slowly
converging over libvirt however, and most solutions I use right now
rely on qemu under the hood, certainly not chroots...
I could also have decided to go with containers like LXC, LXD, Docker
(with conbuilder, whalebuilder, docker-buildpackage),
systemd-nspawn (with debspawn), unshare (with schroot
--chroot-mode=unshare), or whatever: I didn't feel those offer the
level of isolation that is provided by qemu.
The main downside of this approach is that it is (obviously) slower
than native builds. But on modern hardware, that cost should be
minimal.
Then to make this used by default, add this to ~/.sbuildrc:
# run autopkgtest inside the schroot
$run_autopkgtest = 1;
# tell sbuild to use autopkgtest as a chroot
$chroot_mode = 'autopkgtest';
# tell autopkgtest to use qemu
$autopkgtest_virt_server = 'qemu';
# tell autopkgtest-virt-qemu the path to the image
# use --debug there to show what autopkgtest is doing
$autopkgtest_virt_server_options = [ '--', '/srv/sbuild/qemu/%r-%a.img' ];
# tell plain autopkgtest to use qemu, and the right image
$autopkgtest_opts = [ '--', 'qemu', '/srv/sbuild/qemu/%r-%a.img' ];
# no need to cleanup the chroot after build, we run in a completely clean VM
$purge_build_deps = 'never';
# no need for sudo
$autopkgtest_root_args = '';
Note that the above will use the default autopkgtest (1GB, one core)
and qemu (128MB, one core) configuration, which might be a little low
on resources. You probably want to be explicit about this, with
something like this:
# extra parameters to pass to qemu
# --enable-kvm is not necessary, detected on the fly by autopkgtest
my @_qemu_options = ['--ram-size=4096', '--cpus=2'];
# tell autopkgtest-virt-qemu the path to the image
# use --debug there to show what autopkgtest is doing
$autopkgtest_virt_server_options = [ @_qemu_options, '--', '/srv/sbuild/qemu/%r-%a.img' ];
$autopkgtest_opts = [ '--', 'qemu', @qemu_options, '/srv/sbuild/qemu/%r-%a.img'];
This configuration will:
create a virtual machine image in /srv/sbuild/qemu for
unstable
tell sbuild to use that image to create a temporary VM to build
the packages
tell sbuild to run autopkgtest (which should really be
default)
tell autopkgtest to use qemu for builds and for tests
Note that the VM created by sbuild-qemu-create have an unlocked root
account with an empty password.
Other useful tasks
enter the VM to make test, changes will be discarded (thanks Nick
Brown for the sbuild-qemu-boot tip!):
You might also need parameters like --ram-size if you customized
it above.
And yes, this is all quite complicated and could be streamlined a
little, but that's what you get when you have years of legacy and just
want to get stuff done. It seems to me autopkgtest-virt-qemu should
have a magic flag starts a shell for you, but it doesn't look like
that's a thing. When that program starts, it just
says ok and sits there.
Maybe because the authors consider the above to be simple enough (see
also bug #911977 for a discussion of this problem).
Live access to a running test
When autopkgtest starts a VM, it uses this funky qemu commandline:
... which is a typical qemu commandline, I'm sorry to say. That
gives us a VM with those settings (paths are relative to a temporary
directory, /tmp/autopkgtest-qemu.w1mlh54b/ in the above example):
the shared/ directory is, well, shared with the VM
port 10022 is forward to the VM's port 22, presumably for SSH,
but not SSH server is started by default
the ttyS1 and ttyS2 UNIX sockets are mapped to the first two
serial ports (use nc -U to talk with those)
the monitor UNIX socket is a qemu control socket (see the QEMU
monitor documentation, also nc -U)
In other words, it's possible to access the VM with:
nc -U /tmp/autopkgtest-qemu.w1mlh54b/ttyS2
The nc socket interface is ... not great, but it works well
enough. And you can probably fire up an SSHd to get a better shell if
you feel like it.
Nitty-gritty details no one cares about
Fixing hang in sbuild cleanup
I'm having a hard time making heads or tails of this, but please bear
with me.
In sbuild + schroot, there's this notion that we don't really need
to cleanup after ourselves inside the schroot, as the schroot will
just be delted anyways. This behavior seems to be handled by the
internal "Session Purged" parameter.
At least in lib/Sbuild/Build.pm, we can see this:
my $is_cloned_session = (defined ($session->get('Session Purged')) &&
$session->get('Session Purged') == 1) ? 1 : 0;
[...]
if ($is_cloned_session)
$self->log("Not cleaning session: cloned chroot in use\n");
else
if ($purge_build_deps)
# Removing dependencies
$resolver->uninstall_deps();
else
$self->log("Not removing build depends: as requested\n");
... which is ... a little confusing to me. $info is:
my $info = $self->get('Chroots')->get_info($schroot_session);
... so I presume that depends on whether the schroot was correctly
cleaned up? I stopped digging there...
ChrootUnshare.pm is way more explicit:
$self->set('Session Purged', 1);
I wonder if we should do something like this with the autopkgtest
backend. I guess people might technically use it with something else
than qemu, but qemu is the typical use case of the autopkgtest
backend, in my experience. Or at least certainly with things that
cleanup after themselves. Right?
For some reason, before I added this line to my configuration:
$purge_build_deps = 'never';
... the "Cleanup" step would just completely hang. It was quite
bizarre.
Disgression on the diversity of VM-like things
There are a lot of different virtualization solutions one can use
(e.g. Xen, KVM, Docker or Virtualbox). I have also
found libguestfs to be useful to operate on virtual images in
various ways. Libvirt and Vagrant are also useful wrappers on
top of the above systems.
There are particularly a lot of different tools which use Docker,
Virtual machines or some sort of isolation stronger than chroot to
build packages. Here are some of the alternatives I am aware of:
Take, for example, Whalebuilder, which uses Docker to build
packages instead of pbuilder or sbuild. Docker provides more
isolation than a simple chroot: in whalebuilder, packages are
built without network access and inside a virtualized
environment. Keep in mind there are limitations to Docker's security
and that pbuilder and sbuilddo build under a different user
which will limit the security issues with building untrusted
packages.
On the upside, some of things are being fixed: whalebuilder is now
an official Debian package (whalebuilder) and has added
the feature of passing custom arguments to dpkg-buildpackage.
None of those solutions (except the autopkgtest/qemu backend) are
implemented as a sbuild plugin, which would greatly reduce their
complexity.
I was previously using Qemu directly to run virtual machines, and
had to create VMs by hand with various tools. This didn't work so well
so I switched to using Vagrant as a de-facto standard to build
development environment machines, but I'm returning to Qemu because it
uses a similar backend as KVM and can be used to host longer-running
virtual machines through libvirt.
The great thing now is that autopkgtest has good support for qemuandsbuild has bridged the gap and can use it as a build
backend. I originally had found those bugs in that setup, but all of
them are now fixed:
#911977: sbuild: how do we correctly guess the VM name in autopkgtest?
#911979: sbuild: fails on chown in autopkgtest-qemu backend
#911963: autopkgtest qemu build fails with proxy_cmd: parameter not set
#911981: autopkgtest: qemu server warns about missing CPU features
So we have unification! It's possible to run your virtual machines
and Debian builds using a single VM image backend storage, which is
no small feat, in my humble opinion. See the sbuild-qemu blog post
for the annoucement
Now I just need to figure out how to merge Vagrant, GNOME Boxes, and
libvirt together, which should be a matter of placing images in the
right place... right? See also hosting.
pbuilder vs sbuild
I was previously using pbuilder and switched in 2017 to sbuild.
AskUbuntu.com has a good comparative between pbuilder and sbuild
that shows they are pretty similar. The big advantage of sbuild is
that it is the tool in use on the buildds and it's written in Perl
instead of shell.
My concerns about switching were POLA (I'm used to pbuilder), the fact
that pbuilder runs as a separate user (works with sbuild as well now,
if the _apt user is present), and setting up COW semantics in sbuild
(can't just plug cowbuilder there, need to configure overlayfs or
aufs, which was non-trivial in Debian jessie).
Ubuntu folks, again, have moredocumentation there. Debian
also has extensive documentation, especially about how to
configure overlays.
I was ultimately convinced by stapelberg's post on the topic which
shows how much simpler sbuild really is...
Who
Thanks lavamind for the introduction to the sbuild-qemu package.
This is the fourth book of the Malloreon, the sequel series to
the Belgariad. Eddings as usual helpfully
summarizes the plot of previous books (the one thing about his writing
that I wish more authors would copy), this time by having various
important people around the world briefed on current events. That said,
you don't want to start reading here (although you might wish you could).
This is such a weird book.
One could argue that not much happens in the Belgariad other than map
exploration and collecting a party, but the party collection involves
meddling in local problems to extract each new party member. It's a bit
of a random sequence of events, but things clearly happen. The Malloreon
starts off with a similar structure, including an explicit task to create
a new party of adventurers to save the world, but most of the party is
already gathered at the start of the series since they carry over from the
previous series. There is a ton of map exploration, but it's within the
territory of the bad guys from the previous series. Rather than local
meddling and acquiring new characters, the story is therefore chasing
Zandramas (the big bad of the series) and books of prophecy.
This could still be an effective plot trigger but for another decision of
Eddings that becomes obvious in Demon Lord
of Karanda (the third book): the second continent of this world, unlike
the
Kingdoms
of Hats world-building of the Belgariad, is mostly uniform. There are
large cities, tons of commercial activity, and a fairly effective and
well-run empire, with only a little local variation. In some ways it's a
welcome break from Eddings's previous characterization by stereotype, but
there isn't much in the way of local happenings for the characters to get
entangled in.
Even more oddly, this continental empire, which the previous series set up
as the mysterious and evil adversaries of the west akin to Sauron's domain
in Lord of the Rings, is not mysterious to some of the party at
all. Silk, the Drasnian spy who is a major character in both series, has
apparently been running a vast trading empire in Mallorea. Not only has
he been there before, he has houses and factors and local employees in
every major city and keeps being distracted from the plot by his cutthroat
capitalist business shenanigans. It's as if the characters ventured into
the heart of the evil empire and found themselves in the entirely normal
city next door, complete with restaurant recommendations from one of their
traveling companions.
I think this is an intentional subversion of the normal fantasy plot by
Eddings, and I kind of like it. We have met the evil empire, and they're
more normal than most of the good guys, and both unaware and entirely
uninterested in being the evil empire. But in terms of dramatic plot
structure, it is such an odd choice. Combined with the heroes
being so absurdly powerful that they have no reason to take most dangers
seriously (and indeed do not), it makes this book remarkably anticlimactic
and weirdly lacking in drama.
And yet I kind of enjoyed reading it? It's oddly quiet and comfortable
reading. Nothing bad happens, nor seems very likely to happen. The
primary plot tension is Belgarath trying to figure out the plot of the
series by tracking down prophecies in which the plot is written down with
all of the dramatic tension of an irritated rare book collector. In the
middle of the plot, the characters take a detour to investigate an
alchemist who is apparently immortal, featuring a university on Melcena
that could have come straight out of a Discworld novel, because
investigating people who spontaneously discover magic is of arguably equal
importance to saving the world. Given how much the plot is both on rails
and clearly willing to wait for the protagonists to catch up, it's hard to
argue with them. It felt like a side quest in a video game.
I continue to find the way that Eddings uses prophecy in this series to be
highly amusing, although there aren't nearly enough moments of the
prophecy giving Garion stage direction. The basic concept of two
competing prophecies that are active characters in the world attempting to
create their own sequence of events is one that would support a better
series than this one. It's a shame that Zandramas, the main villain, is
rather uninteresting despite being female in a highly sexist society,
highly competent, a different type of shapeshifter (I won't say more to
avoid spoilers for earlier books), and the anchor of the other prophecy.
It's good material, but Eddings uses it very poorly, on top of making the
weird decision to have her talk like an extra in a Shakespeare play.
This book was astonishingly pointless. I think the only significant plot
advancement besides map movement is picking up a new party member (who was
rather predictable), and the plot is so completely on rails that the
characters are commenting about the brand of railroad ties that Eddings
used. Ce'Nedra continues to be spectacularly irritating. It's not, by
any stretch of the imagination, a good book, and yet for some reason I
enjoyed it more than the other books of the series so far. Chalk one up
for brain candy when one is in the right mood, I guess.
Followed by The Seeress of Kell, the epic (?) conclusion.
Rating: 6 out of 10
Windows 10 added a new PIN login method, which is an optional login method instead of an Internet based password through Microsoft or a Domain password through Active Directory. Here is a web page explaining some of the technology (don t watch the YouTube video) [1]. There are three issues here, whether a PIN is any good in concept, whether the specifics of how it works are any good, and whether we can copy any useful ideas for Linux.
Is a PIN Any Good?
A PIN in concept is a shorter password. I think that less secure methods of screen unlocking (fingerprint, face unlock, and a PIN) can be reasonably used in less hostile environments. For example if you go to the bathroom or to get a drink in a relatively secure environment like a typical home or office you don t need to enter a long password afterwards. Having a short password that works for short time periods of screen locking and a long password for longer times could be a viable option.
It could also be an option to allow short passwords when the device is in a certain area (determined by GPS or Wifi connection). Android devices have in the past had options to disable passwords when at home.
Is the Windows 10 PIN Any Good?
The Windows 10 PIN is based on TPM security which can provide real benefits, but this is more of a failure of Windows local passwords in not using the TPM than a benefit for the PIN. When you login to a Windows 10 system you will be given a choice of PIN or the configured password (local password or AD password).
As a general rule providing a user a choice of ways to login is bad for security as an attacker can use whichever option is least secure.
The configuration options for Windows 10 allow either group policy in AD or the registry to determine whether PIN login is allowed but doesn t have any control over when the PIN can be used which seems like a major limitation to me.
The claim that the PIN is more secure than a password would only make sense if it was a viable option to disable the local password or AD domain password and only use the PIN. That s unreasonably difficult for home users and usually impossible for people on machines with corporate management.
Ideas For Linux
I think it would be good to have separate options for short term and long term screen locks. This could be implemented by having a screen locking program use two different PAM configurations for unlocking after short term and long term lock periods.
Having local passwords based on the TPM might be useful. But if you have the root filesystem encrypted via the TPM using systemd-cryptoenroll it probably doesn t gain you a lot. One benefit of the TPM is limiting the number of incorrect attempts at guessing the password in hardware, the default is allowing 32 wrong attempts and then one every 10 minutes. Trying to do that in software would allow 32 guesses and then a hardware reset which could average at something like 32 guesses per minute instead of 32 guesses per 320 minutes. Maybe something like fail2ban could help with this (a similar algorithm but for password authentication guesses instead of network access).
Having a local login method to use when there is no Internet access and network authentication can t work could be useful. But if the local login method is easier then an attacker could disrupt Internet access to force a less secure login method.
Is there a good federated authentication system for Linux? Something to provide comparable functionality to AD but with distributed operation as a possibility?
At the end of March, the source code to StackRox was released,
following the 2021 acquisition by Red Hat. StackRox is a Kubernetes security
tool which is now badged as Red Hat Advanced Cluster Security (RHACS),
offering features such as vulnerability management, validating cluster
configurations against CIS benchmarks, and some runtime behaviour analysis. In
fact, it s such a diverse range of features that I have trouble getting my head
round it from the product page or even the documentation.
Source code is available via the StackRox organisation on GitHub,
and the most obviously interesting repositories seem to be:
stackrox/scanner, the vulnerability
scanner, also in Go. From a first glance at the go.mod file, it does not seem
to share much code with Clair, which is
interesting.
stackrox/collector, the runtime
analysis component, in C++ but also with hooks into the kernel.
My initial curiosity has been around the collector , to better understand what
runtime behaviour the tool can actually pick up. I was intrigued to find that
the actual kernel component is a patched version of Falco s kernel module/eBPF probes;
a few features are disabled compared to Falco, e.g. page faults and signal events.
There s a list of supported syscalls in
driver/syscall_table.c,
which seems to have drifted slightly or be slightly behind the upstream Falco
version? In particular I note the absence of io_uring, but given RHACS is
mainly deployed on Linux 4.18 at the moment (RHEL 8) this is probably a
non-issue. (But relevant if anyone were to run it on newer kernels.)
That s as far as I ve got for now. Red Hat are making great efforts to reach
out to the community; there s a Slack channel,
and office hours recordings,
and a community hub to explore further. It s
great to see new free software projects created through acquisition in this
way - I m not sure I remember seeing a comparable example.
Back in April 2021 I introduced a simple text-based adventure game, The Lighthouse of Doom, which I'd written in Z80 assembly language for CP/M systems.
As it was recently the 40th Anniversary of the ZX Spectrum 48k, the first computer I had, and the reason I got into programming in the first place, it crossed my mind that it might be possible to port my game from CP/M to the ZX Spectrum.
To recap my game is a simple text-based adventure game, which you can complete in fifteen minutes, or less, with a bunch of Paw Patrol easter-eggs.
You enter simple commands such as "up", "down", "take rug", etc etc.
You receive text-based replies "You can't see a telephone to use here!".
My code is largely table-based, having structures that cover objects, locations, and similar state-things. Most of the code involves working with those objects, with only a few small platform-specific routines being necessary:
Clearing the screen.
Pausing for "a short while".
Reading a line of input from the user.
Sending a $-terminated string to the console.
etc.
My feeling was that I could replace the use of those CP/M functions with something custom, and I'd have done the 99% of the work. Of course the devil is always in the details.
Let's start. To begin with I'm lucky in that I'm using the pasmo assembler which is capable of outputting .TAP files, which can be loaded into ZX Spectrum emulators.
I'm not going to walk through all the code here, because that is available within the project repository, but here's a very brief getting-started guide which demonstrates writing some code on a Linux host, and generating a TAP file which can be loaded into your favourite emulator. As I needed similar routines I started working out how to read keyboard input, clear the screen, and output messages which is what the following sample will demonstrate..
First of all you'll need to install the dependencies, specifically the assembler and an emulator to run the thing:
# apt install pasmo spectemu-x11
Now we'll create a simple assembly-language file, to test things out - save the following as hello.z80:
; Code starts here
org 32768
; clear the screen
call cls
; output some text
ld de, instructions ; DE points to the text string
ld bc, instructions_end-instructions ; BC contains the length
call 8252
; wait for a key
ld hl,0x5c08 ; LASTK
ld a,255
ld (hl),a
wkey:
cp (hl) ; wait for the value to change
jr z, wkey
; get the key and save it
ld a,(HL)
push af
; clear the screen
call cls
; show a second message
ld de, you_pressed
ld bc, you_pressed_end-you_pressed
call 8252
;; Output the ASCII character in A
ld a,2
call 0x1601
pop af
call 0x0010
; loop forever. simple demo is simple
endless:
jr endless
cls:
ld a,2
call 0x1601 ; ROM_OPEN_CHANNEL
call 0x0DAF ; ROM_CLS
ret
instructions:
defb 'Please press a key to continue!'
instructions_end:
you_pressed:
defb 'You pressed:'
you_pressed_end:
end 32768
Now you can assemble that into a TAP file like so:
$ pasmo --tapbas hello.z80 hello.tap
The final step is to load it in the emulator:
$ xspect -quick-load -load-immed -tap hello.tap
The reason I specifically chose that emulator was because it allows easily loading of a TAP file, without waiting for the tape to play, and without the use of any menus. (If you can tell me how to make FUSE auto-start like that, I'd love to hear!)
I wrote a small number of "CP/M emulation functions" allowing me to clear the screen, pause, prompt for input, and output text, which will work via the primitives available within the standard ZX Spectrum ROM. Then I reworked the game a little to cope with the different screen resolution (though only minimally, some of the text still breaks lines in unfortunate spots):
The end result is reasonably playable, even if it isn't quite as nice as the CP/M version (largely because of the unfortunate word-wrapping, and smaller console-area). So now my repository contains a .TAP file which can be loaded into your emulator of choice, available from the releases list.
Here's a brief teaser of what you can expect:
Outstanding bugs? Well the line-input is a bit horrid, and unfortunately this was written for CP/M accessed over a terminal - so I'd assumed a "standard" 80x25 resolution, which means that line/word-wrapping is broken in places.
That said it didn't take me too long to make the port, and it was kinda fun.
The Reproducible Builds project relies on several projects, supporters
and sponsors for financial support, but they are
also valued as ambassadors who spread the word about our project and the work
that we do.
This is the fourth instalment in a series featuring the projects, companies
and individuals who support the Reproducible Builds project. If you are a
supporter of the Reproducible Builds project (of whatever size) and would like
to be featured here, please let get in touch with us at
contact@reproducible-builds.org.
We started this series by
featuring the Civil Infrastructure Platform
project and followed this up with a
post about the Ford Foundation
as well as a recent one about ARDC. However,
today, we ll be talking with Meder Kydyraliev of the
Google Open Source Security Team (GOSST).
Chris Lamb: Hi Meder, thanks for taking the time to talk to us today. So, for
someone who has not heard of the Google Open Source Security Team (GOSST)
before, could you tell us what your team is about?
Meder: Of course. The Google Open Source Security Team (or GOSST ) was created
in 2020 to work with the open source community at large, with the goal of
making the open source software that everyone relies on more secure.
Chris: What kinds of activities is the GOSST involved in?
Meder: The range of initiatives that the team is involved in recognizes the
diversity of the ecosystem and unique challenges that projects face on their
security journey. For example, our sponsorship of sos.dev
ensures that developers are rewarded for security improvements to open source
projects, whilst the long term work on improving
Linux kernel security
tackles specific kernel-related vulnerability classes.
Many of the projects GOSST is involved with aim to make it easier for
developers to improve security through automated assessment
(Scorecards and
Allstar) and vulnerability discovery tools
(OSS-Fuzz, ClusterFuzzLite,
FuzzIntrospector), in addition to
contributing to infrastructure to make adopting certain best practices
easier. Two great examples of best practice efforts are
Sigstore for artifact signing and
OSV for automated vulnerability management.
Chris: The usage of open source software has exploded in the last decade, but
supply-chain hygiene and best practices has seemingly not kept up. How does
GOSST see this issue and what approaches is it taking to ensure that past and
future systems are resilient?
Meder: Every open source ecosystem is a complex environment and that awareness
informs our approaches in this space. There are, of course, no silver
bullets , and long-lasting and material supply-chain improvements requires
infrastructure and tools that will make lives of open source developers easier,
all whilst improving the state of the wider software supply chain.
As part of a broader effort, we created the Supply-chain Levels for Software Artifacts
framework that has been used internally at Google to protect
production workloads. This framework describes the best practices for source
code and binary artifact integrity, and we are engaging with the community on
its refinement and adoption. Here, package managers (such as PyPI, Maven
Central, Debian, etc.) are an essential link in the software supply chain due
to their near-universal adoption; users do not download and compile their own
software anymore. GOSST is starting to work with package managers to explore
ways to collaborate together on improving the state of the supply chain and
helping package maintainers and application developers do better all with the
understanding that many open source projects are developed in spare time as a
hobby!
Solutions like this,
which are the result of collaboration between GOSST and GitHub,
are very encouraging as they demonstrate a way to materially strengthen
software supply chain security with readily available tools, while also
improving development workflows.
For GOSST, the problem of supply chain security also covers vulnerability
management and solutions to make it easier for everyone to discover known
vulnerabilities in open source packages in a scalable and automated way. This
has been difficult in the past due to lack of consistently
high-quality data in an easily-consumable format. To address this, we re working
on infrastructure (OSV.dev) to make vulnerability data more easily accessible
as well as a widely adopted and automation friendly data format.
Chris: How does the Reproducible Builds effort help GOSST achieve its goals?
Meder: Build reproducibility has a lot of attributes that are attractive as
part of generally good build hygiene . As an example, hermeticity, one of
requirements to meet SLSA level 4,
makes it much easier to reason about the dependencies of a piece of software.
This is an enormous benefit during vulnerability or supply chain incident
response.
On a higher level, however, we always think about reproducibility from the
viewpoint of a user and the threats that reproducibility protects them from.
Here, a lot of progress has been made, of course, but a lot of work remains to
make reproducibility part of everyone s software consumption practices.
Chris: So if someone wanted to know more about GOSST or follow the team s
work, where might they go to look?
Meder: We post regular updates on Google s Security Blog
and on the Linux hardening mailing list.
We also welcome community participation in the projects we work on! See any of
the projects linked above or OpenSSF s GitHub projects page
for a list of efforts you can contribute to directly if you want to get
involved in strengthening the open source ecosystem.
Chris: Thanks for taking the time to talk to us today.
Meder: No problem. :)
For more information about the Reproducible Builds project, please see our website at
reproducible-builds.org. If you are interested in
ensuring the ongoing security of the software that underpins our civilisation
and wish to sponsor the Reproducible Builds project, please reach out to the
project by emailing
contact@reproducible-builds.org.
My attempt to travel to the UK by train last year didn t go quite as well as I expected. As I mentioned in that blog post, the NightJet to Brussels was cancelled, forcing me to fly instead. This disappointed me so much that I actually unpublished the blog post minutes after it was originally put online. The timing was nearly perfect: I type make publish and I get an email from BB saying they don t know if my train is going to run. Of course it didn t, as Deutsche Bahn workers went ahead with their strike. The blog post sat in the drafts for more than half a year until yesterday, when I finally updated and published it.
The reason I have finally published it is that I m going to the UK by train once again. Now, unless railways decide to hold a strike again, fully by train both ways. Very expensive, especially compared to the price of Ryanair flights to my destination. Unfortunately, even though Eurostar added more daily services, they re still not cheap, especially on a shorter notice. This seems to apply to the BB s NightJet even more: I tried many routes between Vienna and London, and the cheapest still seemed to be the connection through Brussels.
While researching the prices of the tickets, it seems all booking systems decided to stop co-operating. The Trainline refused to let me look up any trains at all, even with all tracking and advertisement allowed, SNCF kepts showing me overly generic errors (Sorry, an error has occurred.), while the GWR booking system kept crashing with a 500 Internal Server Error for about two hours.
Trainline, GWR and SNCF kept crashing
Eventually, having spent a lot of time and money, I ve booked my trains to, within and back from England. This time, Cambridge is among the destinations.
The complete route
Date
Station
Arrival
Departure
Train
26.4
Bratislava hl.st.
18:37
REX 2529
Wien Hbf
19:44
20:13
NJ 40490
27.4
Bruxelles-Midi
9:54
15:56
EST 9145
London St Pancras
17:01
17:43
ThamesLink
Cambridge
18:43
I m not sure about it yet, but I may end up taking an earlier train from Bratislava just to ensure there s enough time for the change in Vienna; similarly, I m not sure how much time I will be spending at St Pancras, so I may take one of the later trains.
P.S. The maps in this and other posts were created using uMap; the map data come from OpenStreetMap. The train route visualisation was generated with help of signal.eu.org.
This post was written in August 2021. Just as I was going to publish it, I received an email from BB stating that due to a railway strike in Germany my night train would be cancelled. Since the rest of the trip has already been booked well in advance, I had to take a plane to Charleroi and a bus to Brussels to catch my Eurostar. Ultimately, I ended up publishing it in April 2022, just as I m about to leave for a fully train-powered trip to the UK once again.
Before the pandemic started, I planned to use the last months of my then-expiring UK visa and go to England by train. I ve completed two train long journeys by that time already, to Brussels and to Belarus and Ukraine, but this would be something quite different, as I wanted to have multiple stops on my way, use night trains where it made sense, and to go through the Channel Tunnel.
The Channel Tunnel fascinated me since my childhood; I first read about it in the Soviet Science and Life magazine () when I was seven. I ve never had the chance to use it though, since to board any train going though it I d first need to get to France, Belgium or the Netherlands, making it significantly more expensive than the cheap 30 Ryanair flights to Stansted.
As the coronavirus spread across the world, all of my travel plans along with plans for a sabbatical had to be cancelled. During 2020, I only managed to go on two weekend trips to Prague and Budapest, followed by a two-weeks holiday on Crete (we returned just a couple of weeks before the infection numbers rose and lockdowns started). I do realise that a lot of people couldn t even have this much because the situation in their countries was much worse we were lucky to have had at least some travel.
Fast forward to August 2021, I m fully vaccinated, I once again have a UK visa for five years, and the UK finally recognises the EU vaccination passports yay! I can finally go to Devon to see my mother and sister again. By train, of course.
Compared to my original plan, this journey will be different: about the same or even more expensive than I originally planned, but shorter and with fewer stops on the way. My original plan would be to take multiple trains from Bratislava to France or Belgium and complete this segment of the trip in about three days, enjoying my stay in a couple of cities on the way. Instead, I m taking a direct NightJet from Vienna to Brussels, not stopping anywhere on the way.
Train route from Bratislava to Brussels
Since I was booking my trip just two weeks ahead, the price of the ticket is not that I hoped for, but much higher: 109 for the ticket itself and 60 for the berth (advance bookings could be about twice as cheap).
Next, to London! Eurostar is still on a very much reduced schedule, running one train only from Amsterdam through Brussels and Lille to London each day. This means, of course, higher ticket prices (I paid about 100 for the ticket) and longer waiting time in Brussels my sleeper arrives about 10 am, but the Eurostar train is scheduled to depart at 3 pm.
Train route from Brussels to London
The train makes a stop in Lille, which I initially suspected to be risky as at the time when I booked my tickets, as at the time France was on the amber plus list for the UK, requiring a quarantine upon arrival. However, Eurostar announced that they will assign travellers from Lille to a different carriage to avoid other passengers having to go to quarantine, but recently France was taken off the amber plus list.
The train fare system in the UK is something I don t quite understand, as sometimes split tickets are cheaper, sometimes they re expensive, sometimes prices for the same service at different times can be vastly different, off-peak tickets don t say what exactly off-peak means (very few people in the UK are asked were able to tell me when exactly off-peak hours are). Curiously, transfers between train stations using London Underground services can be included into railway tickets, but some last mile connection like Exeter to Honiton cannot (but this used to be possible). Both GWR.com and TrainLine refused to sell me a single ticket from London to Honiton through Exeter, insisting I split the ticket at Exeter St Davids or take the slower South Western train to Honiton via Salisbury and Yeovil. I ended up buying a 57 ticket from Paddington to Exeter St Davids with the first segment being the London Underground from St Pancras, and a separate 7.70 ticket to Honiton.
Change of trains in LondonChange of trains in Exeter
Date
Station
Arrival
Departure
Train
12.8
Bratislava-Petr alka
18:15
REX 7756
Wien Hbf
19:15
19:53
NJ 50490
13.8
Bruxelles-Midi
9:55
15:06
EST 9145
London St Pancras
16:03
16:34
TfL
London Paddington
16:49
17:04
GWR 59231
Exeter St Davids
19:19
19:25
SWR 52706
Honiton
19:54
Unfortunately, due to the price of the tickets, I m taking a 15 Ryanair flight back
Update after the journey
Since I flew to Charleroi instead of comfortably sleeping in a night train, I had to put up with inconveniences of airports, including cumbersome connections to the nearby cities. The only reasonable way of getting from Charleroi to Brussels is an overcrowded bus which takes almost an hour to arrive. I used to take this bus when I tried to save money on my way to FOSDEM, and I must admit it s not something I missed.
Boarding the Eurostar train went fine, my vaccination passport and Covid test wasn t really checked, just glanced at. The waiting room was a bit of a disappointment, with bars closed and vending machines broken. Since it was underground, I couldn t even see the trains until the very last moment when we were finally allowed on the platform. The train itself, while comfortable, disappointed me with the bistro carriage: standing only, instant coffee, poor selection of food and drinks. I m glad I bought some food at Carrefour at the Midi station!
When I arrived in Exeter, I soon found out why the system refused to sell me a through ticket: 6 minutes is not enough to change trains at Exeter St Davids! Or, it might have been if I took the right footbridge but I took the one which led into a very talkative (and slow!) lift. I ended up running to the train just as it closed the doors and departed, leaving me tin Exeter for an hour until. I used this chance and walked to Exeter Central, and had a pint in a conveniently located pub around the corner.
P.S. The maps in this and other posts were created using uMap; the map data come from OpenStreetMap. The train route visualisation was generated with help of the Raildar.fr OSRM instance.
There has been a
flurry of activity on the Debian mailing lists ever since Steve
McIntyre raised the issue of including non-free firmware as part of
official Debian installation images.
Firstly I should point out that I am in complete agreement with Steve s proposal to include non-free firmware as part of an installation image. Likewise I think that we should have a separate archive section for firmware. Because without doing so it will soon become almost impossible to install onto any new hardware. However, as always the issue is more nuanced than a first glance would suggest.
Lets start by
defining what is firmware?
Firmware is any
software that runs outside the orchestration of the operating system.
Typically firmware will be executed on a processor(s) separate from
the processor(s) running the OS, but this does not need to be the
case.
As Debian we
are content that our systems can operate using fully free and open
source software and firmware. We can install our OS without needing
any non-free firmware.
This is an illusion!
Each and every PC
platform contains non-free firmware
It may be possible to run free firmware on some Graphics controllers, Wi-Fi chip-sets, or Ethernet cards and we can (and perhaps should) choose to spend our money on systems where this is the case. When installing a new system we might still be forced to hold our nose and install with non-free firmware on the peripheral before we are able to upgrade it to FLOSS firmware later if this is exists or is even possible to do so. However after the installation we are running a full FLOSS system in terms of software and firmware.
We all (almost
without exception) are running propitiatory firmware whether we like
it or not.
Even after carefully selecting graphics and network hardware with FLOSS firmware options we still haven t escaped from non-free-firmware. Other peripherals contain firmware too each keyboard, disk (SSDs and Spinning rust). Even your USB memory stick that you use to contain the Debian installation image contains a microcontroller and hence also contains firmware that runs on it.
Much of this
firmware can not even be updated.
Some can be
updated, but is stored in FLASH ROM and the hardware vendor has
defeated all programming methods (possibly circumnavigated with a
hardware mod).
Some of it can
be updated but requires external device programmers (and often the
programming connections are a series of test points dotted around
the board and not on a header in order to make programming as
difficult as possible).
Sometimes the
firmware can be updated from within the host operating system (i.e.
Debian)
Sometimes, as
Steve pointed out in his post, the hardware vendor has enough
firmware on a peripheral to perform basic functions perhaps
enough to install the OS, but requires additional firmware to enable
specific feature (i.e. higher screen resolutions, hardware
accelerated functions etc.)
Finally some
vendors don t even bother with any non-volatile storage beyond a
basic boot loader and firmware must be loaded before the device can
be used in any mode.
What about the motherboard? If we are lucky we might be able to run a FLOSS implementation of the UEFI subsystem (edk2/tianocore for example), indeed the non AMD64/i386 platforms based around ARM, MIPS architectures are often the most free when it comes to firmware.
What about the microcode on the processor? Personally I wasn t aware that that this was updatable firmware until the Spectre and Meltdown classes of vulnerabilities arose a few years back.
So back to Debian
images including non-free firmware.
This is specifically to address the last two use cases mentioned above, i.e. where firmware needs to be loaded to achieve a minimum functioning of a device. Although it could also include motherboard support, and microcode as well.
As far as I can tell
the proposal exists for several reasons:
#1 Because some freely distributable firmware is required for
more and more devices, in order to install Debian, or because whilst
Debian can be installed a desktop environment can not be started or
fully function
#2 Because frankly it is less work to produce, test and maintain fewer installation images As someone who performs tests on our images, this clearly gets my vote :-)
and perhaps most important of all..
#3 Because our least experienced users, and new users will download an official image and give up if things don t just work TM
Steve s proposal
option 5 would address theses issues and I fully support it.
I would love to see
separate repositories for firmware and firmware-none free.
Additionally to accompany firmware non-free I would like to have
information on what the firmware actually does. Can I run my
hardware without it, what function(s) are limited without the
firmware, better yet is there a FLOSS equivalent that I can load
instead? Is this something that we can present in Debian installer?
I would love not to require non-free firmware, but if I can t,
I would love if DI would enable a user to make an informed choice as
to what, if any, firmware is installed.
Should we be
requesting (requiring?) this information for any non-free firmware
image that we carry in the archive?
Finally lets
consider firmware in the wider general case, not just the case where
we need to load firmware from within Debian each and every boot.
Personally I am
annoyed whenever a hardware manufacturer has gone out of their way to
prevent firmware updates. Lets face it software contains bugs, and
we can assume that the software making up a firmware image will as
well.
Critical (security)
vulnerabilities found in firmware, especially if this runs on the
same processor(s) as the OS can impact on the wider system, not just
the device itself. This will mean that, without updatable firmware,
the hardware itself should be withdrawn from use whilst it would
otherwise still function. By preventing firmware updates vendors are
forcing early obsolescence in the hardware they sell, perhaps good
for their bottom line, but certainly no good for users or the
environment.
Here I can practice
what I preach. As an Electronic Engineer / Systems architect I have
been beating the drum for In System Updatable firmware for ALL
programmable devices in a system, be it a simple peripheral or a
deeply embedded system. I can honestly say that over the last 20
years (yes I have been banging this particular drum for that long) I
have had 100% success in arguing this case commercially. Having
device programmers in R&D departments is one thing, but that is
additional cost for production, and field service. Needing custom
programming headers or even a bed of nails fixture to connect your
target device to a programmer is more trouble than it is worth.
Finally, the ability to update firmware in the field means that you
can launch your product on schedule, make a sale and ship to a
customer even if the first thing that you need to do is download an
update. Offering that to any project manager will make you very
popular indeed.
So what if this
firmware is non-free? As long as the firmware resides in
non-volatile media without needing the OS to interact with it, we as
a project don t need to carry it in our archives. And we as
principled individuals can vote with our feet and wallets by choosing
to purchase devices that have free firmware.
But where that isn t
an option, I ll take updatable but non-free firmware over non-free
firmware that can not be updated any day of the week.
Sure, the
manufacture can choose to no longer support the firmware, and it is
shocking how soon this happens often in the consumer market, the
manufacture has withdrawn support for a product before it even
reaches the end user (In which case we should boycott that
manufacture in future until they either change their ways of go
bust). But again if firmware can be updated in system that
would at least allow the possibility of open firmware to arise.
Indeed the only commercial case I have seen to argue against
updatable firmware has been either for DRM, in which case good
lets get rid of both, or for RF licence compliance, and even then it
is tenuous because in this case the manufacture wants ISP for its own
use right up until a device is shipped out the door, typically
achived by blowing one time programmable fuse links .
A while ago I was given a few reasonably high-end Android phones to give away. I gave two very nice phones to someone who looks after refugees so a couple of refugee families could make video calls to relatives. The third phone is a Huawei Nova 7i [1] which doesn t have the Google Play Store. The Nova 7i is a ridiculously powerful computer (8G of RAM in a phone!!!) but without the Google Play Store it s not much use to the average phone user. It has the HuaWei App Gallery which isn t as bad as most of the proprietary app stores of small players in the Android world, it has SnapChat, TikTok, Telegram, Alibaba, WeChat, and Grays auction (an app I didn t even know existed) along with many others. It also links to ApkPure (apparently a 3rd party app installer that obtains APK files for major commercial apps) for Facebook among others. The ApkPure thing might be Huawei outsourcing the violation of Facebook terms of service. For the moment I ve decided to only use free software on this phone and use my old phone for non-free stuff (Facebook, LinkedIn, etc). The eventual aim is that I can only carry a phone with free software for normal use and carry a second phone if I m active on LinkedIn or something. My recollection is that when I first got the phone (almost 2 years ago) it didn t have such a range of apps.
The first thing to install was f-droid [2] as the app repository. F-droid has a repository of thousands of free software Android apps as well as some apps that are slightly less free which are tagged appropriately. You can install the F-Droid app from the web site. As an aside I had to go to settings and enable force old index format to get the list of packages, I don t know why as other phones had worked without it.
Here are the F-Droid apps I installed:
Kdeconnect to transfer files to PC. This has some neat features including using the PC keyboard on Android. One downside is that there s no convenient way to kill it. I don t want it hanging around, I want to transfer a file and close it down to minimise exposure.
K9 is an Android app for email that I ve used for over a decade now. Previously I ve used it from the Play Store but it s available in F-droid. I used Kdeconnect to transfer the exported configuration from my old phone to my PC and then from my PC to my new phone.
I m now using SchildiChat for Matrix as a replacement for Google Hangouts (I previously wrote about how Google is killing Hangouts [3]). One advantage of SchildiChat is that it keeps a notification running 24*7 to reduce the incidence of Android killing it. The process of sending private messages with Matrix seems noticeably slower than Hangouts, while Google will inevitably be faster than a federated system (if only because they buy better hardware than I rent) the difference shouldn t be enough to notice (my Matrix servers might need some work).
I used ffupdater to install Firefox. It can also install other browsers that don t publish APK files. One of the options is Ungoogled Chromium which I m not going to use even though I ve found Google Chrome to be a great browser, I think I should go all the way in avoiding Google. There s no description in the app of the differences between the browsers, the ffupdater web page has information about the browsers [4].
I use Tusky for Mastodon which is a replacement for Twitter. My Mastodon address is @etbe@mastodon.nzoss.nz. Currently Mastodon needs more users, there are plenty of free servers out there and the New Zealand Open Source Society is just one I have contact with.
I have used ConnectBot for ssh connections from Android for over 10 years, previously via the Play Store but it s also in F-droid. To get the hash of a key from a server in the way ConnectBot displays it run ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_ed25519_key.pub .
I initially changed Keyboard from MS Swiftkey to the Celia keyboard that came with the phone. But it s spelling correction was terrible, almost never suggesting words with apostrophes when appropriate and also having no apparent option to disable adult words. I m now using OpenBoard which is a port of the Google Android keyboard which works well.
I ve just installed primitive ftpd for file transfer, it supports ftp and sftp protocols and is well written.
I ve installed the mpv video player which plays FullHD video at high quality using hardware decoding. I don t need to do that sort of thing (the screen is too small to make it worth FullHD video), but it s nice to have.
For barcodes and QR codes I m using Binary Eye which seems better than the Play Store one I had used previously.
For playing music I ve tried using the Simple Music Player (which is nice for mp3s), but it doesn t play m4a or webm files. Auxio and Music Player Go play mp3 and m4a but not webm. So far the only programs I ve found that can play webm are VLC and MPV, so I m trying out VLC as a music player which it basically does but a program with the same audio features and no menu options about video would be better. Webm is important to me because I have some music videos downloaded from YouTube and webm allows me to put a binary copy of the audio data into an audio file.
Future Plans
The current main things I m missing are a calendar, a contact list, and a shared note taking system (like Google Keep). For calendaring and a contact list the CalDAV and CardDAV protocols seem best. The most common implementation on the server side appears to be DAViCal [5]. The Nextcloud system supports CalDAV, CardDAV, web editing of notes and documents (including LibreOffice if you install that plugin) [6]. But it is huge and demands write access to all it s own code (bad for security), and it s not packaged for Debian. Also in my tests it gave me an error 401 when I tried to authenticate to it from the Android Nextcloud client. I ve seen a positive review about Radicale, a simple CalDAV and CardDAV server that doesn t need a database [7]. I prefer the Unix philosophy of keeping things simple with file storage unless there s a real need for anything else. I don t think that anything I ever do with calendaring will require the PostgreSQL database that DAViCal uses.
I ll give Radicale a go for CalDAV and CardDAV, but I still need something for shared notes (shopping lists etc). Suggestions welcome.
Current Status
Lack of a contacts list is a major loss of functionality in a phone. I could store contacts in the phone memory or on the SIM, but I would still have to get all my old contacts in there and also getting something half working reduces motivation for getting it working properly. Lack of a calendar is also a problem, again I could work around that by exporting all my Google calendars as iCal URLs but I d rather get it working correctly.
The lack of shared notes may be a harder problem to solve given the failure of Nextcloud. For that I would consider just having the keep.google.com web site always open in Mozilla at least in the short term.
At the moment I require two phones, my new Android phone without Google and the old one for my contacts list etc. Hopefully in a week or so I ll have my new phone doing contacts, calendaring, and notes. Then my old phone will just be for proprietary apps which I don t need most of the time and I can leave it at home when I don t need that sort of thing.
Recently I wanted to upgrade the firmware of my thinkpad, and
located the firmware download page from Lenovo (which annoyingly do
not allow access via Tor, forcing me to hand them more personal
information that I would like). The
download
from Lenovo is a bootable ISO image, which is a bit of a problem
when all I got available is a USB memory stick. I tried booting the
ISO as a USB stick, but this did not work. But genisoimage came to
the rescue.
The geteltorito program in
the genisoimage binary
package is able to convert the bootable ISO image to a bootable
USB stick using a simple command line recipe, which I then can write
to the most recently inserted USB stick:
Recently I wanted to upgrade the firmware of my thinkpad, and
located the firmware download page from Lenovo (which annoyingly do
not allow access via Tor, forcing me to hand them more personal
information that I would like). The
download
from Lenovo is a bootable ISO image, which is a bit of a problem
when all I got available is a USB memory stick. I tried booting the
ISO as a USB stick, but this did not work. But genisoimage came to
the rescue.
The geteltorito program in
the genisoimage
package is able to convert the bootable ISO image to a bootable
USB stick using a simple command line recipe, which I then can write
to the most recently inserted USB stick:
We are very pleased to announce that
ITP - Innovation and Training Park Prizren
has committed to supporting DebConf22 as a
Platinum sponsor. Also, ITP Prizren will host the Conference for all 15
days!
The ITP Prizren intends to be a changing and
boosting element in the area of ICT, agro-food and creatives industries, through
the creation and management of a favourable environment and efficient services
for SMEs, exploiting different kinds of innovations that can contribute to
Kosovo to improve its level of development in industry and research, bringing
benefits to the economy and society of the country as a whole.
ITP Prizren is a focal point in the Balkan region for innovation, business and
skills development, and a source of innovative and successful ideas.
With this commitment as Platinum Sponsor, ITP Prizren is contributing to make
possible our annual conference, and directly supporting the progress of Debian
and Free Software, helping to strengthen the community that continues to
collaborate on Debian projects throughout the rest of the year.
Thank you very much ITP Prizren, for your support of DebConf22!
Become a sponsor too!
DebConf22 will take place from July 17th to
24th, 2022 at the Innovation and Training Park (ITP)
in Prizren, Kosovo, and will be preceded by DebCamp, from July 10th to 16th.
And DebConf22 is still accepting sponsors!
Interested companies and organizations may contact the DebConf team
through sponsors@debconf.org, and
visit the DebConf22 website at
https://debconf22.debconf.org/sponsors/become-a-sponsor.