# nap-selinux **Repository Path**: mirrors_nginx/nap-selinux ## Basic Information - **Project Name**: nap-selinux - **Description**: SElinux integration for NAP4/5 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-24 - **Last Updated**: 2026-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SELinux Integration for NGINX App Protect WAF (NAP 4 & 5) This project provides tools, sample policies, and documentation for integrating **NGINX App Protect WAF (NAP) versions 4 and 5** with **SELinux** on RHEL-based systems. ## Overview SELinux (Security-Enhanced Linux) provides a mandatory access control (MAC) framework for Linux systems. When deploying NGINX App Protect WAF in secure environments, customizing and enforcing SELinux policies ensures that only explicitly allowed operations are permitted, reducing the attack surface. This repository contains: - Custom SELinux Type Enforcement (TE) policies and supporting files(.fc) for NAP 4 and NAP 5 - Scripts for: - Building and loading policies - Extracting and interpreting SELinux denials from audit logs - Automating test cycles with policy generation - Example AVC denial resolutions ## Structure
. ├── nap4-selinux/ │ ├── selinux_policy/ │ ├── test_scripts/ │ ├── README.md │ └── troubleshooting.md ├── nap5-selinux/ │ ├── selinux_policy/ │ ├── test_scripts/ │ ├── README.md │ └── troubleshooting.md └── README.md## Requirements - RHEL 8/9 (or compatible) - SELinux installed and enabled - NGINX App Protect WAF v4 or v5