Skip to content
IROSG.
Articles

Understanding systemd: boot, units, dependencies and service hardening

An original source-backed IROSG IT guide.

Understanding systemd: boot, units, dependencies and service hardening

Scope

This original IROSG guide covers مدیریت سرویس و sandboxing در systemd using the cited primary documentation.

Core model

systemd فقط جایگزین یک init script نیست. Unit graph، socket activation، timer، mount و dependencyها را در یک مدل واحد قرار می‌دهد. همین مدل اجازه می‌دهد startup قابل پیش‌بینی‌تر و hardening سرویس granularتر شود.

Practical workflow

با systemctl cat و systemctl show اول unit مؤثر را ببینید؛ بعد systemd-analyze security را به‌عنوان سرنخ استفاده کنید، نه حکم قطعی. هر ProtectSystem، PrivateTmp یا RestrictAddressFamilies باید با رفتار واقعی سرویس تست شود.

Failure modes

امتیاز systemd-analyze security تضمین امنیت نیست. فعال‌کردن کورکورانهٔ گزینه‌ها هم می‌تواند سرویس را بشکند. باید نیاز فایل‌سیستم، شبکه، helper process و capabilityها را بشناسید.

Lab

یک service ساده HTTP بسازید، baseline بگیرید و hardening directiveها را یکی‌یکی اضافه کنید. بعد هم test مثبت و هم test منفی اجرا کنید تا مطمئن شوید کاهش privilege واقعی است.

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/blog/systemd-secure-services

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