redhat – SELinux:如何添加新的安全上下文?
发布时间:2020-12-14 02:56:54 所属栏目:Linux 来源:网络整理
导读:我是SE Linux的新手,我正在尝试添加一个新的安全上下文(标签)来测试拒绝.为此,我尝试将filew更改为新的上下文: chcon -t new_t test 但它失败了“无效的参数”.如何添加新类型“new_t”? 解决方法 有关如何创建新类型的示例是 http://fedoraproject.org/wi
我是SE
Linux的新手,我正在尝试添加一个新的安全上下文(标签)来测试拒绝.为此,我尝试将filew更改为新的上下文:
chcon -t new_t test 但它失败了“无效的参数”.如何添加新类型“new_t”? 解决方法
有关如何创建新类型的示例是
http://fedoraproject.org/wiki/PackagingDrafts/SELinux#Creating_new_types
一旦你构建了模块(make -f /usr/share / selinux / devel / Makefile)并将其插入SELinux(semodule -i foobar.pp),你就可以chcon -t foobar_t test. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |