Re: [PATCH -v3 -mm] LSM: Add security= boot parameter

From: Casey Schaufler
Date: Sun Mar 02 2008 - 13:37:35 EST



--- "Ahmed S. Darwish" <darwish.07@xxxxxxxxx> wrote:

> Hi!,
>
> [
> Fixed two bugs:
> - concurrency: incrementing and testing atomic_t in different places.
> - overflow: not ending string with NULL after using strncpy().
> - I'll never write a patch when I'm asleep, sorry :(
>
> Added more verbose messages to SMACK and SELinux if they were not
> chosen on boot.
>
> Casey: Failing to take permission to register an LSM does not mean that
> the other has registered its security_ops yet. It just means that
> the other asked for allowance to call register_security(). It's
> not yet guraranteed that this registration succeeded.
>
> This means that adding "SELinux: failed to load, LSM %s is loaded"
> may lead to %s = "dummy" in case of a highly concurrent SMP system.
> ]

Personally, I'd be OK with seeing "dummy" on my Altix on occasion. :-)
Perhaps "SELinux: Not registered, %s is reported" would address the
concern. It would be really good to see the value in the 99 44/100%
of the cases where it is available, even if it means admitting that
there are limited circumstances where you might know that someone
got there ahead of you, but not who it was. I don't think it's
worth going to heroic efforts to make sure it's available.


Casey Schaufler
casey@xxxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/