By Jonathan Corbet
August 3, 2010
James Morris's
2.6.36 security
subsystem preview included, among other things, the
Yama security module, which
contains a number of security-related changes from Canonical. James later
updated his posting, saying:
I'm going to revert the Yama stuff for 2.6.36 -- Christoph has
nacked it to me off-list.
An off-list shootdown was always going to raise eyebrows, but Christoph
(Hellwig) was quick to make his concerns
public. He said:
As mentioned a few times during the past discussion moving broken
code into a LSM doesn't magically fix it. In fact YAMA is not any
kind of (semi-)coherent security policy like Selinux, smack or
similar but just a random set of hacks that you didn't get past the
subsystem maintainers.
Christoph, it seems, would rather that these changes went directly into the
subsystems affected, rather than being swept into a separate security
module. The problem, of course, is that's just how Yama author Kees Cook
had started; he was told in no uncertain terms that putting his
security-related changes directly into the VFS and ptrace() code
was unwelcome. The advice at that time was that his changes should be put
into a security module where the rest of the world could ignore them. Even
Christoph suggested that
approach back in June.
The "not a coherent security model" objection was heard from some other
directions as well. According to Valdis
Kletnieks:
In other words - if you want to be an LSM, you need to be
full-featured enough to cover all the bases, not just a few
cherry-picked ones.
Some developers, it seems, would rather not see a set
of security-related tweaks gathered together into a module without an
overall policy behind it. There have also been the usual claims that
everything done by Yama can also be accomplished in SELinux, though Kees
seems to disagree.
This rejection leaves Kees in the difficult position of trying to upstream
his changes (something his employer has been criticized for not doing) but
having no apparent way to actually get them merged. But it may be that all
that's really required is a bit of patience. New security modules always
seem to bring opposition out of the woodwork, but, with some persistence,
they tend to get merged in the end.
(
Log in to post comments)