diff mbox series

[SRU,B/C/D,1/1] UBUNTU: SAUCE: integrity: downgrade error to warning

Message ID 20190420074145.20701-2-andrea.righi@canonical.com
State New
Headers show
Series UBUNTU: SAUCE: downgrade error to warning | expand

Commit Message

Andrea Righi April 20, 2019, 7:41 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1766201

In 58441dc86d7b the error "Unable to open file: ..." has been downgraded
to warning in the integrity/ima subsystem. Do the same for a similar
error message in the generic integrity subsystem.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
---
 security/integrity/digsig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Connor Kuehl April 22, 2019, 4:12 p.m. UTC | #1
On 4/20/19 12:41 AM, Andrea Righi wrote:
> BugLink: https://bugs.launchpad.net/bugs/1766201
> 
> In 58441dc86d7b the error "Unable to open file: ..." has been downgraded
> to warning in the integrity/ima subsystem. Do the same for a similar
> error message in the generic integrity subsystem.
> 
> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
> ---

Acked-by: Connor Kuehl <connor.kuehl@canonical.com>

>  security/integrity/digsig.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c
> index 9bb0a7f2863e..13d0b4beeb91 100644
> --- a/security/integrity/digsig.c
> +++ b/security/integrity/digsig.c
> @@ -123,7 +123,7 @@ int __init integrity_load_x509(const unsigned int id, const char *path)
>  	rc = kernel_read_file_from_path(path, &data, &size, 0,
>  					READING_X509_CERTIFICATE);
>  	if (rc < 0) {
> -		pr_err("Unable to open file: %s (%d)", path, rc);
> +		pr_warn("Unable to open file: %s (%d)", path, rc);
>  		return rc;
>  	}
>  
>
diff mbox series

Patch

diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c
index 9bb0a7f2863e..13d0b4beeb91 100644
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@ -123,7 +123,7 @@  int __init integrity_load_x509(const unsigned int id, const char *path)
 	rc = kernel_read_file_from_path(path, &data, &size, 0,
 					READING_X509_CERTIFICATE);
 	if (rc < 0) {
-		pr_err("Unable to open file: %s (%d)", path, rc);
+		pr_warn("Unable to open file: %s (%d)", path, rc);
 		return rc;
 	}