Red Hat s Matthew Garrett let the cat out of the bag about a month ago: when UEFI Secure Boot is adopted by mainboard manufacturers to satisfy Microsoft Windows 8 requirements, it may very well be the case that Linux and others (BSD, Haiku, Minix, OS/2, etc) will no longer boot.
Matthew has written about it extensively and seems to know very well what the issues are (part I, part II), the details about signing binaries and why Linux does not support Secure Boot yet.
The Free Software Foundation has also released a statement and started a campaign, which is, as usually, anti-Microsoft instead of pro-solutions.
Now let me express my opinion on this matter: this is not Microsoft s fault.
Facts
Let s see what are the facts in this controversy:
I've been wanting to sponsor a child in Africa for many, many years. I
remember seeing a photo of a sponsored child on a couple of sets of friends'
mantelpieces in Canberra, and saying to myself how I should really do that
too.
Of course, for no really good reason, fast-forwarding to 6+ years later, I
still hadn't gotten around to it. Until last month. I was walking out
of the Apple Store in Palo Alto. I was accosted by one of those people on
the street, with the clipboard and all that.
I usually manage to brush these sorts of people off. I really hate solicited
donations. I'd rather consciously make a donation to a charity, than do it
because someone on the street was paid to ask me to, or knocked on my door,
or whatever. But I was distracted, or in a good mood, or something, and so I
missed the initial opportunity to deflect her.
I'm really glad I did, because as I said, this is something that I've wanted
to do for years, so I barely hesitated, and signed up on the spot.
I received the welcome kit in the mail a couple of days ago. I've been
allocated a 6 year old boy named Armando, from Mozambique. I'm looking
forward to corresponding with him.
Our friends, and former neighbours, the Harvetts have moved back to South
Africa, and I hope one day to be able to visit them. Since we'll be in the
vicinity, I hope one day to be able to visit Armando as well.
I'm pleased to see that Save the
Children gets a good rap in Charity Navigator. I was worried
that I'd get home and find out I'd signed up with one of those charities
that blows half their money on overhead, but that's not the case.
I received recently a mail about my attempt to provide Grsecurity kernels in Debian. The
sender found the bug by accident, and asked me why I didn't do some
more publicity here. So here we are.
I won't go into details on what grsecurity is, it's fairly
complex. But it's basically a hardening patch for the Linux kernel,
with three main components:
deb http://molly.corsac.net/~corsac/debian/kernel-grsec/packages/ sid/ The repository is signed by my key which you can add to your apt setup using apt-key add. If you want to rebuild the packages yourself, here's the method:
mkdir kernel-grsec
cd kernel-grsec
svn checkout
svn://svn.debian.org/svn/kernel/dists/sid/linux-2.6
git clone
git://anonscm.debian.org/users/corsac/grsec-patches.git
wget
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
wget
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2.sign
gpg --verify linux-3.0.tar.bz2
cd linux-2.6
apt-get build-dep linux-2.6
export QUILT_PATCHES=../grsec-patches
quilt push -a
python debian/bin/genorig.py ../linux-3.0.tar.bz2
debian/rules orig
fakeroot debian/rules source
fakeroot make -f debian/rules.gen binary-arch_amd64_grsec_amd64
You could also do dpkg-buildpackage, pdebuild or whatever.
Kernel
handbook is a nice reading too if you want more information on
how to rebuild Debian kernels. The quilt push -a may fail if you
checkout an svn version more recent than mine. I try to keep
patches up to date but I usually have some delay.
Note that installing the kernel will require installing
linux-grsec-base package. Binary is not yet available on my mirror
but you can easily build it. Source can be found on
git.debian.org.
If you're interested by this, don't hesitate to mail me or the
bug.
$ mkdir build $ cd build $ cmake .. ()-- Configuring done -- Generating done -- Build files have been written to: /home/amckinstry/deb-packages /cdat/cdat-6.0.alpha/build $ make $The problem is, 'make' does nothing. A Makefile is generated by CMake, which calls cmake which calls make again on ./CMakeFiles/Makefile2 ... which does nothing useful. Apparently the CMake is supposed to put useful stuff in there, but doesn't. What puts stuff into Makefile2, and where should I pick up the bugs trail?
This post is made in a personal capacity. While it represents the outcome of multiple discussions on the topic with a variety of people, nothing written below should be construed as Red Hat's corporate position
Rapha l Hertzog recently announced
a new dpkg-buildflags interface in dpkg that at long last gives the
distribution, the package maintainers, and users the control they want over
the build flags used when building packages.
The announcement mail gives all the gory details about how to invoke
dpkg-buildflags in your build to be compliant; but the nice thing is, if
you're using dh(1) with debian/compat=9, debhelper does it for you
automatically so long as you're using a build system that it knows how to
pass compiler flags to.
So for the first time, /usr/share/doc/debhelper/examples/rules.tiny can now
be used as-is to provide a policy-compliant package by default (setting
-g -O2 or -g -O0 for your build regardless of how debian/rules is
invoked).
Of course, none of my packages actually work that way; among other things I
have a habit of liberally sprinkling DEB_MAINT_CFLAGS_APPEND := -Wall
in my rules, and sometimes DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs and
DEB_CFLAGS_MAINT_APPEND := $(shell getconf LFS_CFLAGS) as well. And my
upstreams' build systems rarely work 100% out of the box with dhauto*
without one override or another somewhere. So in practice, the shortest
debian/rules file in any of my packages seems to be 13 lines currently.
But that's 13 lines of almost 100% signal, unlike the bad old days of
cut'n'pasted dh_* command lists.
The biggest benefit, though, isn't in making it shorter to write a rules
file with the old, standard build options. The biggest benefit is that
dpkg-buildflags now also outputs build-hardening compiler and linker flags
by default on Debian. Specifically, using the new interface lets you pick up
all of these hardening flags for free:
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wl,-z,relro
It also lets you get -fPIE and -Wl,-z,now by adding this one line to
your debian/rules (assuming you're using dh(1) and compat 9):
export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
Converting all my packages to use dh(1) has always been a long-term goal,
but some packages are easier to convert than others. This was the tipping
point for me, though. Even though debhelper compat level 9 isn't yet frozen,
meaning there might still be other behavior changes to it that will make more
work for me between now and release, over the past couple of weekends I've
been systematically converting all my packages to use it with dh. In
particular, pam and samba have been rebuilt to use the default hardening
flags, and openldap uses these flags plus PIE support. (Samba already
builds with PIE by default courtesy of upstream.)
You can't really make samba and openldap out on
the graph, but they're
there (with their rules files reduced by 50% or more).
I cannot overstate the significance of proactive hardening. There have been
a number of vulnerabilities over the past few years that have been thwarted
on Ubuntu because Ubuntu is using -fstack-protector by default. Debian has
a great security team that responds quickly to these issues as soon as
they're revealed, but we don't always get to find out about them before
they're already being exploited in the wild. In this respect, Debian has
lagged behind other distros.
With dpkg-buildflags, we now have the tools to correct this. It's just a
matter of getting packages to use the new interfaces. If you're a maintainer
of a security sensitive package (such as a network-facing daemon or a setuid
application), please enable dpkg-buildflags in your package for wheezy!
(Preferably with PIE as well.) And if you don't maintain security sensitive
packages, you can still help out with the hardening release
goal.
I'm indescribably happy to be able to say that I found Smudge alive and well
this morning.
I was getting ready to head out the door to work, and I opened the shutters
in the kitchen and saw that the trap that I had outside by the front door
was closed. The trap itself was wrapped in a sheet, so I couldn't
immediately see what I'd caught.
I quickly went outside, half-expecting to find a raccoon in there, and I was
pleasantly surprised to find Smudge in there!
I brought the trap inside and got Smudge out and raced her over to the food
and water, where she had a long drink of water and something to eat.
She's definitely lost some weight, but otherwise doesn't seem any worse for
wear. She's currently sitting in my lap as I write this, so I don't think
she's too traumatised by her ordeal. Lily was a bit standoffish this
morning, hissing and growling at her, but I suspect that's because she
didn't smell right. If she keeps that up, I'll put a drop of vanilla essence on
both of them so they smell the same.
Yesterday, I'd received a report of a possible sighting three streets over
(houses on one side of the street back onto the Hetch Hetchy trail, where
there were also reported sightings), so last night I placed the other trap
in the backyard of one of the houses where there'd been a sighting.
A couple of hours after that, I got another report of a possible sighting
from someone else on the same street, further down. So I was pretty keen to
substantiate all of these sightings on this particular street.
Unfortunately, after two trips up there, I didn't see any black cats, so
we'll never know if it was her or not.
The night before last, I'd upgraded the food in the traps to some sardines,
tuna and some fresh wet cat food, to try and lure her in. I have no idea if
that helped or not, or she just finally found her way home, but it was such
a relief to find her in the trap this morning.
It turns out I caught an opossum in the other trap. Those are the funniest
animals. They have a totally broken fight or flight reflex. This one would
not leave the trap when I opened it. I ended up having to upend the trap and
shake it out, and even then it just lay there playing dead - even when I
shoved a bowl of food in its mouth.
I've just done the rounds of the neighbourhood and taken down all the
posters I'd put up. It had been suggested that I might want to update the
posters and say that I'd found her, but I honestly don't want to do the
extra trip to then take them all down again after that.
With this, my NIN vinyl album collection is now
complete.
I don't have a comprehensive NIN vinyl collection by any account: I don't have
all the singles nor the remix albums, rarities, etc., but I do have all the
albums. This is the newly-remastered version of "Pretty Hate Machine", which
sites proudly next to an original.
I'm still waiting for the much-anticipated remaster of The
Fragile, which turned 12 last
month. It appears to have been sidelined by movie soundtrack work.
A couple of times I have written code which basically does this:
my $chain = IO::Splice->new($fh1, $fh2);
$chain->pump(); # read and write from both handles if possible and needed
$chain->read($fh1); # read to buffer from one specific handle
$chain->write($fh2); # write from buffer to one specific handle
$chain->can_write(); # returns the handles it needs to write to
but it might be simpler to have two callbacks for setting a file handle in write or no-write state:
my $readset = IO::Select->new( $fh1, $fh2);
my $writeset = IO::Select->new();
my $chain = IO::Splice->new( $fh1, $fh2,
writable => sub $writeset->add( shift ) ,
unwritable => sub $writeset->remove( shift )
);
while ( ... select ... )
$chain->pump();
As said, I think I have plenty of implementations of the na ve way but before releasing some code it would be nice to get some input on the API. But the best feedback would be a module that already have a usable API but might not implement the Linux specific way. That would allow me to steal the interface
It'll be a week today since I assume Smudge disappeared. Still no sign of her.
I got one call from my posters around the neighbourhood, but I'm now pretty
confident that it was another black cat. I really got my hopes up on that one.
I don't know what else to do. I could be out beating bushes every spare minute,
but I feel like I'm chasing a potentially moving target around an unbounded
space. I've had no bites in the cat traps out by the front door. Not even a
skunk.
The waiting game sucks. I have no idea if she's dead or alive.
Only ONE of us is the kind of person that goes up to guys with machine guns to ask what s happening. Me to Terah todayThey told me that it was the preparations for the opening ceremony for a global shooting contest, and also gave me directions to the bus stop.
It has been a while since I last
ranted about the Deutsche Bahn, our national train service
monopoly. Out of necessity, I ve since become one of their frequent
travellers. Together with the spiffy, silver card, I received a
pamphlet, in which the advantages of frequent travellers are
listed.
When I compare those advantages to
what was promised, I cannot help but notice quite a few
differences to my disadvantage. Since I refused to believe
that the Deutsche Bahn could be this stupid, I double-checked with
the service hotline, and I now have the information to report:
Next.