你提到的 “CentOS context” 可能指几种不同含义,下面分别说明常见语境下 CentOS 对相关“context(上下文 / 安全上下文)”的支持版本情况:
如果你指的是 SELinux 安全上下文(security context):
✅ 结论:
CentOS 4 及以后所有版本都支持 SELinux context,主流使用集中在 CentOS 6–Stream 9。
如果你指的是 systemd 的 context(如 Service 的 Execution Context):
User=, Group=, WorkingDirectory=, Environment=, SELinuxContext= 等✅ 仅 CentOS 7 及以上 支持 systemd context。
如 pam_selinux, pam_namespace:
如容器 SELinux context(container_t):
如果你能补充一下具体场景(例如:SELinux / systemd / 容器 / 编程 API),我可以给你更精确的版本对照表或配置示例。