aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/conditional.h
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2020-01-17 09:58:32 +0100
committerPaul Moore <paul@paul-moore.com>2020-02-10 10:49:01 -0500
commit06c2efe2cf3aa70abbdf97e88641abca2e707a15 (patch)
tree172985d880e3cb1cd355bc1149e3467c53b645fe /security/selinux/ss/conditional.h
parentDocumentation,selinux: deprecate setting checkreqprot to 1 (diff)
downloadlinux-dev-06c2efe2cf3aa70abbdf97e88641abca2e707a15.tar.xz
linux-dev-06c2efe2cf3aa70abbdf97e88641abca2e707a15.zip
selinux: simplify evaluate_cond_node()
It never fails, so it can just return void. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Reviewed-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/conditional.h')
-rw-r--r--security/selinux/ss/conditional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/conditional.h b/security/selinux/ss/conditional.h
index ec846e45904c..d86ef286ca84 100644
--- a/security/selinux/ss/conditional.h
+++ b/security/selinux/ss/conditional.h
@@ -75,6 +75,6 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
struct av_decision *avd, struct extended_perms *xperms);
void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key,
struct extended_perms_decision *xpermd);
-int evaluate_cond_node(struct policydb *p, struct cond_node *node);
+void evaluate_cond_node(struct policydb *p, struct cond_node *node);
#endif /* _CONDITIONAL_H_ */