Re: [PATCH] Correcting Kconfig for default security module

From: James Morris
Date: Thu May 27 2010 - 19:34:43 EST


On Fri, 28 May 2010, Shaz wrote:

> Dear James,
>
> The following patch removes the confusion that if someone want to have
> LSM as secondary and chooses DAC as the default. This will disable LSM
> as discussed on SELinux mailing list.

The correct list for posting security patches is the LSM list (cc'd).

>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> diff -uNr linux-2.6.34/security/Kconfig linux-2.6.34-my/security/Kconfig
> --- linux-2.6.34-orig/security/Kconfig 2010-05-17 02:17:36.000000000 +0500
> +++ linux-2.6.34/security/Kconfig 2010-05-28 02:43:07.000000000 +0500
> @@ -148,11 +148,10 @@
> default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX
> default DEFAULT_SECURITY_SMACK if SECURITY_SMACK
> default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO
> - default DEFAULT_SECURITY_DAC
>
> help
> Select the security module that will be used by default if the
> - kernel parameter security= is not specified.
> + kernel parameter security= is not specified. DAC stays as the default.
>
> config DEFAULT_SECURITY_SELINUX
> bool "SELinux" if SECURITY_SELINUX=y
> @@ -163,9 +162,7 @@
> config DEFAULT_SECURITY_TOMOYO
> bool "TOMOYO" if SECURITY_TOMOYO=y
>
> - config DEFAULT_SECURITY_DAC
> - bool "Unix Discretionary Access Controls"
> -
> +
> endchoice
>
> config DEFAULT_SECURITY
>
> --
> Shaz
>

--
James Morris
<jmorris@xxxxxxxxx>
--
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/