Skip to content

Commit 6e37592

Browse files
author
James Morris
committed
Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/selinux into for-linus2
2 parents 096fe9e + f3bef67 commit 6e37592

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

security/selinux/ss/conditional.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
638638
{
639639
struct avtab_node *node;
640640

641-
if (!ctab || !key || !avd || !xperms)
641+
if (!ctab || !key || !avd)
642642
return;
643643

644644
for (node = avtab_search_node(ctab, key); node;
@@ -657,7 +657,7 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
657657
if ((u16)(AVTAB_AUDITALLOW|AVTAB_ENABLED) ==
658658
(node->key.specified & (AVTAB_AUDITALLOW|AVTAB_ENABLED)))
659659
avd->auditallow |= node->datum.u.data;
660-
if ((node->key.specified & AVTAB_ENABLED) &&
660+
if (xperms && (node->key.specified & AVTAB_ENABLED) &&
661661
(node->key.specified & AVTAB_XPERMS))
662662
services_compute_xperms_drivers(xperms, node);
663663
}

0 commit comments

Comments
 (0)