Skip to content
IROSG.
Articles

What is SELinux? A practical enforcing-mode guide

An original source-backed IROSG IT guide.

What is SELinux? A practical enforcing-mode guide

Scope

This original IROSG guide covers کنترل دسترسی اجباری SELinux و عیب‌یابی denialها using the cited primary documentation.

Core model

SELinux یک لایهٔ Mandatory Access Control است که فراتر از permissionهای سنتی Unix تصمیم می‌گیرد یک process با چه domainی به چه typeای دسترسی داشته باشد. Type Enforcement هستهٔ مدل عملیاتی آن است.

Practical workflow

هر denial را evidence بدانید. ausearch، journal، ls -Z، restorecon، semanage و booleanها ابزارهای اصلی‌اند. اول context و policy موجود را بررسی کنید؛ audit2allow نباید اولین واکنش باشد.

Failure modes

خاموش‌کردن SELinux مشکل را حل نمی‌کند؛ کنترل را حذف می‌کند. تولید policy محلی از log بدون فهم علت نیز ممکن است دسترسی بیش از حد بدهد.

Lab

یک web service را عمداً روی path با context اشتباه قرار دهید، AVC را مشاهده کنید، با restorecon یا semanage context را اصلاح کنید و بدون خروج از Enforcing سرویس را برگردانید.

Production method

Capture a baseline, change one variable at a time, test positive and negative paths, keep evidence, and rehearse rollback before broad rollout.

TRACEABLE KNOWLEDGE

Sources & further reading

01
Red Hat — مرجع فنیhttps://www.redhat.com/en/topics/linux/what-is-selinux

Editorial review date:

IROSG / EDITORIAL

News and pioneer profiles use original writing with source attribution. Image credits and licenses are kept in each page’s sources section instead of beneath the images. CVE reference data credits its primary sources.

Editorial and image policy ↗

Keep exploring.

Articles ↗
VyOS network operating systemArticles
Networking

VyOS network operating system

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
Routinator RPKI validatorArticles
Networking

Routinator RPKI validator

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
ISC Kea DHCP High AvailabilityArticles
Networking

ISC Kea DHCP High Availability

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story