Commit 78be247
committed
Introduce dontaudit_unlabeled
dontaudit_unlabeled=off would suppress dontaudit rules mostly related to dir
and unlabeled_t
unfortunately unlabeled_t is also file_type so it would also suppress
dontaudit rules related to file_type dir/
# semanage permissive -a unconfined_t
# cat setcon.py
#!/usr/bin/python3
import os
import selinux
import sys
selinux.setcon("system_u:system_r:%s:s0" % sys.argv[1])
os.mkdir("/unlabeled/abc/d")
# setsebool -P dontaudit_unlabeled on
# d=`date +%H:%M:%S`; sleep 1; ./setcon.py smbcontrol_t; sleep 1; ausearch -m avc -ts $d | audit2allow
allow smbcontrol_t syslogd_var_run_t:sock_file write;
allow unconfined_t smbcontrol_t:process dyntransition;
# setsebool -P dontaudit_unlabeled off
# d=`date +%H:%M:%S`; sleep 1; ./setcon.py smbcontrol_t; sleep 1; ausearch -m avc -ts $d | audit2allow
allow smbcontrol_t unlabeled_t:dir search;1 parent 14539b4 commit 78be247
11 files changed
Lines changed: 62 additions & 42 deletions
File tree
- policy/modules
- contrib
- kernel
- system
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 112 | + | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1022 | 1043 | | |
1023 | 1044 | | |
1024 | 1045 | | |
| |||
4730 | 4751 | | |
4731 | 4752 | | |
4732 | 4753 | | |
4733 | | - | |
4734 | | - | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
4735 | 4757 | | |
4736 | 4758 | | |
4737 | 4759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2933 | 2933 | | |
2934 | 2934 | | |
2935 | 2935 | | |
2936 | | - | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2937 | 2939 | | |
2938 | 2940 | | |
2939 | 2941 | | |
| |||
3025 | 3027 | | |
3026 | 3028 | | |
3027 | 3029 | | |
3028 | | - | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
3029 | 3033 | | |
3030 | 3034 | | |
3031 | 3035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1672 | 1672 | | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
| 1675 | + | |
1678 | 1676 | | |
1679 | 1677 | | |
1680 | 1678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
0 commit comments