java.lang.AssertionError: The following types on /data/ must be associated with the "data_file_type" attribute: tcpdump_file

1.自己在data/tcpdump 下定义了 tcpdump_file类型的文件 

file_context

/data/tcpdump(/.*)? u:object_r:tcpdump_file:s0
file.te
type tcpdump_file, file_type;

2.测试报错

java.lang.AssertionError: The following types on /data/ must be associated with the "data_file_type" attribute: tcpdump_file

含义:data目录下的文件需要和data_file_type类型关联

3.解决方法

修改file.te 给 tcpdump_file配置上 data_file_type类型的属性

type tcpdump_file, file_type, data_file_type, core_data_file_type;

 

posted @ 2023-03-20 20:00  xiaowang_lj  阅读(188)  评论(0编辑  收藏  举报