summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Walsh <dwalsh@redhat.com>2011-09-20 15:40:28 -0400
committerMiroslav Grepl <mgrepl@redhat.com>2014-04-11 18:28:01 +0200
commit852dfaa124379e84f6363c30c0ef56f00fa4b235 (patch)
treeb064de1081b35bd6ef28976c3d1ac8599cd34906
parent0ce79dd3761d52f34e370f573cd750ae7a578089 (diff)
downloadsetools-852dfaa124379e84f6363c30c0ef56f00fa4b235.tar.gz
setools-852dfaa124379e84f6363c30c0ef56f00fa4b235.tar.xz
setools-852dfaa124379e84f6363c30c0ef56f00fa4b235.zip
Since-we-do-not-ship-neverallow-rules-all-always-fail
-rw-r--r--libqpol/src/avrule_query.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libqpol/src/avrule_query.c b/libqpol/src/avrule_query.c
index 749565b..76dcaa3 100644
--- a/libqpol/src/avrule_query.c
+++ b/libqpol/src/avrule_query.c
@@ -57,8 +57,9 @@ int qpol_policy_get_avrule_iter(const qpol_policy_t * policy, uint32_t rule_type
if ((rule_type_mask & QPOL_RULE_NEVERALLOW) && !qpol_policy_has_capability(policy, QPOL_CAP_NEVERALLOW)) {
ERR(policy, "%s", "Cannot get avrules: Neverallow rules requested but not available");
- errno = ENOTSUP;
- return STATUS_ERR;
+/* errno = ENOTSUP;
+ return STATUS_ERR; */
+ return STATUS_SUCCESS;
}
db = &policy->p->p;