Messages in this thread | | | Subject | Re: [PATCH] Smack: Fix wrong semantics in smk_access_entry() | From | Tianjia Zhang <> | Date | Wed, 21 Jul 2021 11:10:43 +0800 |
| |
On 7/21/21 12:32 AM, Casey Schaufler wrote: > On 7/15/2021 8:15 AM, Casey Schaufler wrote: >> On 7/15/2021 2:17 AM, Tianjia Zhang wrote: >>> 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. >> Indeed, the code as written is functioning correctly by >> sheer luck. I will take this patch. Thank you. >> >>> Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> > > Added to the Smack next branch. >
Great, Thanks.
Tianjia
| |