如何设置适用于 EFS 挂载的用户目录的可访问 SELinux 策略?

0

【以下的问题经过翻译处理】 当我将EFS挂载到用户目录时,目录策略变为“system_u:object_r:nfs_t:s0”,这太过严格了 - 我需要它表现得更像典型的用户目录,即“unconfined_u:object_r:user_home_dir_t:s0”。如何更改这个呢?

profile picture
EXPERT
asked 5 months ago93 views
1 Answer
0

【以下的回答经过翻译处理】 我是这样解决的: 通过在挂载目录时定义上下文来解决这个问题。我还必须在我的fstab配置中定义它以确保在重新启动后定义持久化。此外,我需要设置域策略为httpd_sys_content_t,使其允许Apache访问内容。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions