mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Add parentheses.
This commit is contained in:
parent
76e0141e21
commit
da080ef1a4
2 changed files with 3 additions and 2 deletions
|
@ -69,8 +69,8 @@ Index: b/security/apparmor/main.c
|
|||
+ * but not to write to the link.
|
||||
+ */
|
||||
+ if (((l_mode & MAY_WRITE) &&
|
||||
+ (t_mode & (MAY_READ | MAY_WRITE) == (MAY_READ | MAY_WRITE))) ||
|
||||
+ ((l_mode & (MAY_WRITE | AA_MAY_LINK) == AA_MAY_LINK) &&
|
||||
+ ((t_mode & (MAY_READ | MAY_WRITE)) == (MAY_READ | MAY_WRITE))) ||
|
||||
+ (((l_mode & (MAY_WRITE | AA_MAY_LINK)) == AA_MAY_LINK) &&
|
||||
+ (t_mode & MAY_READ)))
|
||||
+ return 0;
|
||||
|
||||
|
|
|
@ -100,3 +100,4 @@ constrained-to-confined.diff
|
|||
security-xattr-file.diff
|
||||
file-handle-ops.diff
|
||||
file-handle-ops-2.diff
|
||||
unlink.diff
|
||||
|
|
Loading…
Add table
Reference in a new issue