diff options
Diffstat (limited to 'security')
| -rw-r--r-- | security/selinux/ss/conditional.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index 18643bf9894d..456e1a9bcfde 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c | |||
| @@ -638,7 +638,7 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key, | |||
| 638 | { | 638 | { |
| 639 | struct avtab_node *node; | 639 | struct avtab_node *node; |
| 640 | 640 | ||
| 641 | if (!ctab || !key || !avd || !xperms) | 641 | if (!ctab || !key || !avd) |
| 642 | return; | 642 | return; |
| 643 | 643 | ||
| 644 | for (node = avtab_search_node(ctab, key); node; | 644 | for (node = avtab_search_node(ctab, key); node; |
| @@ -657,7 +657,7 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key, | |||
| 657 | if ((u16)(AVTAB_AUDITALLOW|AVTAB_ENABLED) == | 657 | if ((u16)(AVTAB_AUDITALLOW|AVTAB_ENABLED) == |
| 658 | (node->key.specified & (AVTAB_AUDITALLOW|AVTAB_ENABLED))) | 658 | (node->key.specified & (AVTAB_AUDITALLOW|AVTAB_ENABLED))) |
| 659 | avd->auditallow |= node->datum.u.data; | 659 | avd->auditallow |= node->datum.u.data; |
| 660 | if ((node->key.specified & AVTAB_ENABLED) && | 660 | if (xperms && (node->key.specified & AVTAB_ENABLED) && |
| 661 | (node->key.specified & AVTAB_XPERMS)) | 661 | (node->key.specified & AVTAB_XPERMS)) |
| 662 | services_compute_xperms_drivers(xperms, node); | 662 | services_compute_xperms_drivers(xperms, node); |
| 663 | } | 663 | } |
