[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9c1eec3b-8bb0-9e3e-d6e5-18c670ac2b03@infradead.org>
Date: Wed, 13 Oct 2021 15:54:29 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: deven.desai@...ux.microsoft.com, corbet@....net, axboe@...nel.dk,
agk@...hat.com, snitzer@...hat.com, ebiggers@...nel.org,
tytso@....edu, paul@...l-moore.com, eparis@...hat.com,
jmorris@...ei.org, serge@...lyn.com
Cc: jannh@...gle.com, dm-devel@...hat.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
linux-fscrypt@...r.kernel.org, linux-audit@...hat.com,
linux-security-module@...r.kernel.org
Subject: Re: [RFC PATCH v7 07/16] ipe: add auditing support
Hi,
On 10/13/21 12:06 PM, deven.desai@...ux.microsoft.com wrote:
> diff --git a/security/ipe/Kconfig b/security/ipe/Kconfig
> index c4503083e92d..ef556b66e674 100644
> --- a/security/ipe/Kconfig
> +++ b/security/ipe/Kconfig
> @@ -17,3 +17,55 @@ menuconfig SECURITY_IPE
> requirements on the fly.
>
> If unsure, answer N.
> +
> +if SECURITY_IPE
> +
> +choice
> + prompt "Hash algorithm used in auditing policies"
> + default IPE_AUDIT_HASH_SHA1
> + depends on AUDIT
> + help
> + Specify the hash algorithm used when auditing policies.
> + The hash is used to uniquely identify a policy from other
> + policies on the system.
> +
> + If unsure, leave default.
> +
> + config IPE_AUDIT_HASH_SHA1
> + bool "sha1"
> + depends on CRYPTO_SHA1
> + help
> + Use the SHA128 algorithm to hash policies
> + in the audit records.
> +
> + config IPE_AUDIT_HASH_SHA256
> + bool "sha256"
> + depends on CRYPTO_SHA256
> + help
> + Use the SHA256 algorithm to hash policies
> + in the audit records.
> +
> + config IPE_AUDIT_HASH_SHA384
> + bool "sha384"
> + depends on CRYPTO_SHA512
> + help
> + Use the SHA384 algorithm to hash policies
> + in the audit records
> +
> + config IPE_AUDIT_HASH_SHA512
> + bool "sha512"
> + depends on CRYPTO_SHA512
> + help
> + Use the SHA512 algorithm to hash policies
> + in the audit records
> +endchoice
> +
> +config IPE_AUDIT_HASH_ALG
> + string
> + depends on AUDIT
> + default "sha1" if IPE_AUDIT_HASH_SHA1
> + default "sha256" if IPE_AUDIT_HASH_SHA256
> + default "sha384" if IPE_AUDIT_HASH_SHA384
> + default "sha512" if IPE_AUDIT_HASH_SHA512
> +
> +endif
Please follow coding-style for Kconfig files:
(from Documentation/process/coding-style.rst, section 10):
For all of the Kconfig* configuration files throughout the source tree,
the indentation is somewhat different. Lines under a ``config`` definition
are indented with one tab, while help text is indented an additional two
spaces.
thanks.
--
~Randy
Powered by blists - more mailing lists