mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
apparmor: Fix logical error in verify_header()
verify_header() is currently checking whether interface version is less than 5 *and* greater than 7, which always evaluates to false. Instead it should check whether it is less than 5 *or* greater than 7. Signed-off-by: Christos Gkekas <chris.gekas@gmail.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
19fe43a54f
commit
86aea56f14
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ static int verify_header(struct aa_ext *e, int required, const char **ns)
|
||||||
* if not specified use previous version
|
* if not specified use previous version
|
||||||
* Mask off everything that is not kernel abi version
|
* Mask off everything that is not kernel abi version
|
||||||
*/
|
*/
|
||||||
if (VERSION_LT(e->version, v5) && VERSION_GT(e->version, v7)) {
|
if (VERSION_LT(e->version, v5) || VERSION_GT(e->version, v7)) {
|
||||||
audit_iface(NULL, NULL, NULL, "unsupported interface version",
|
audit_iface(NULL, NULL, NULL, "unsupported interface version",
|
||||||
e, error);
|
e, error);
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue