diff --git a/recipes-security/refpolicy/files/selint.conf b/recipes-security/refpolicy/files/selint.conf
new file mode 100644
index 0000000..0bb14cf
--- /dev/null
+++ b/recipes-security/refpolicy/files/selint.conf
@@ -0,0 +1,16 @@
+# Plain copy of selint v1.5.1's default config, plus refpolicy CI's disables.
+# -c replaces the installed config, so re-sync this when bumping SRCREV.
+
+severity = "convention"
+
+# C-005, C-008 and W-005 are disabled like in refpolicy's lint-policy CI.
+disable = { C-001, C-005, C-006, C-008, W-005, W-010, W-011, E-003, E-004 }
+
+enable_source = { W-010, W-011, E-003, E-004 }
+
+assume_users = { system_u }
+assume_roles = { object_r }
+
+ordering_rules = "refpolicy-lax"
+ordering_requires = { bool, attribute, attribute_role, type, class, role }
+ordering_requires_same_flavor = false
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index be0aa83..c9d752b 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -10,6 +10,7 @@ RPROVIDES:${PN} = "refpolicy"
 SRC_URI += "file://customizable_types \
             file://setrans-mls.conf \
             file://setrans-mcs.conf \
+            file://selint.conf \
            "
 
 # Base patches applied to all Yocto-based platforms.  Your own version of
@@ -94,7 +95,7 @@ FILES:${PN}-dev =+ " \
 
 EXTRANATIVEPATH += "bzip2-native"
 
-DEPENDS = "bzip2-replacement-native checkpolicy-native policycoreutils-native semodule-utils-native m4-native"
+DEPENDS = "bzip2-replacement-native checkpolicy-native policycoreutils-native semodule-utils-native m4-native selint-native"
 
 RDEPENDS:${PN}-dev = " \
     python3-core \
@@ -192,6 +193,14 @@ set_policy_booleans() {
     done
 }
 
+# Lint the policy sources so that a SELint finding fails the build.
+do_selint() {
+    cd ${S}
+    selint -c ${UNPACKDIR}/selint.conf \
+        --source --recursive --summary --fail policy
+}
+addtask selint after do_compile before do_install
+
 do_compile() {
     oe_runmake bare
     if [ -f "${WORKDIR}/modules.conf" ] ; then
