首页 > 系统相关 >java.lang.AssertionError: The following types on /data/ must be associated with the "data_file_

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

时间:2023-03-20 20:12:23浏览次数:41  
标签:lang associated data attribute file type tcpdump

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;

 

标签:lang,associated,data,attribute,file,type,tcpdump
From: https://www.cnblogs.com/wanglongjiang/p/17237546.html

相关文章