[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190703025518.6379-1-yuehaibing@huawei.com>
Date: Wed, 3 Jul 2019 02:55:18 +0000
From: YueHaibing <yuehaibing@...wei.com>
To: James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
David Howells <dhowells@...hat.com>,
Kairui Song <kasong@...hat.com>,
"Thomas Gleixner" <tglx@...utronix.de>,
Mimi Zohar <zohar@...ux.ibm.com>,
"Thiago Jung Bauermann" <bauerman@...ux.ibm.com>,
Nayna Jain <nayna@...ux.ibm.com>,
"Eric Biggers" <ebiggers@...gle.com>
CC: YueHaibing <yuehaibing@...wei.com>,
<linux-security-module@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] integrity: Remove set but not used variable 'acl'
Fixes gcc '-Wunused-but-set-variable' warning:
security/integrity/digsig.c: In function 'integrity_init_keyring':
security/integrity/digsig.c:99:18: warning:
variable 'acl' set but not used [-Wunused-but-set-variable]
It seems 'acl' is needed in __integrity_init_keyring
Fixes: 6100ac53909d ("keys: Replace uid/gid/perm permissions checking with an ACL")
Signed-off-by: YueHaibing <yuehaibing@...wei.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 1f2c43f62047..f9f3c8ffe786 100644
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@ -114,7 +114,7 @@ int __init integrity_init_keyring(const unsigned int id)
acl = &internal_writable_keyring_acl;
out:
- return __integrity_init_keyring(id, &internal_keyring_acl, restriction);
+ return __integrity_init_keyring(id, acl, restriction);
}
static int __init integrity_add_key(const unsigned int id, const void *data,
Powered by blists - more mailing lists