Skip to content
Snippets Groups Projects
Commit 6d14f5c7 authored by Tianjia Zhang's avatar Tianjia Zhang Committed by Casey Schaufler
Browse files

Smack: Fix wrong semantics in smk_access_entry()


In the smk_access_entry() function, if no matching rule is found
in the rust_list, a negative error code will be used to perform bit
operations with the MAY_ enumeration value. This is semantically
wrong. This patch fixes this issue.

Signed-off-by: default avatarTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent 2734d6c1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment