Skip to content

Commit 13cd4c8

Browse files
committed
initial import from svn trunk revision 2950
0 parents  commit 13cd4c8

File tree

860 files changed

+234200
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

860 files changed

+234200
-0
lines changed

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
SUBDIRS=libsepol libselinux libsemanage sepolgen checkpolicy policycoreutils # policy
2+
PYSUBDIRS=libselinux libsemanage
3+
4+
ifeq ($(DEBUG),1)
5+
export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
6+
export LDFLAGS = -g
7+
endif
8+
9+
install relabel:
10+
@for subdir in $(SUBDIRS); do \
11+
(cd $$subdir && $(MAKE) $@) || exit 1; \
12+
done
13+
14+
install-pywrap swigify:
15+
@for subdir in $(PYSUBDIRS); do \
16+
(cd $$subdir && $(MAKE) $@) || exit 1; \
17+
done
18+
19+
clean:
20+
@for subdir in $(SUBDIRS); do \
21+
(cd $$subdir && $(MAKE) $@) || exit 1; \
22+
done
23+
24+
distclean:
25+
@for subdir in libselinux libsemanage; do \
26+
(cd $$subdir && $(MAKE) $@) || exit 1; \
27+
done
28+
29+
test:
30+
@for subdir in $(SUBDIRS); do \
31+
(cd $$subdir && $(MAKE) $@) || exit 1; \
32+
done
33+
34+
indent:
35+
@for subdir in $(SUBDIRS); do \
36+
(cd $$subdir && $(MAKE) $@) || exit 1; \
37+
done

checkpolicy/COPYING

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

checkpolicy/ChangeLog

Lines changed: 354 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,354 @@
1+
2.0.16 2008-05-27
2+
* Update checkpolicy for user and role mapping support from Joshua Brindle.
3+
4+
2.0.15 2008-05-05
5+
* Fix for policy module versions that look like IPv4 addresses from Jim Carter.
6+
Resolves bug 444451.
7+
8+
2.0.14 2008-03-24
9+
* Add permissive domain support from Eric Paris.
10+
11+
2.0.13 2008-03-05
12+
* Split out non-grammar parts of policy_parse.yacc into
13+
policy_define.c and policy_define.h from Todd C. Miller.
14+
15+
2.0.12 2008-03-04
16+
* Initialize struct policy_file before using it, from Todd C. Miller.
17+
18+
2.0.11 2008-03-03
19+
* Remove unused define, move variable out of .y file, simplify COND_ERR, from Todd C. Miller.
20+
21+
2.0.10 2008-02-28
22+
* Use yyerror2() where appropriate from Todd C. Miller.
23+
24+
2.0.9 2008-02-04
25+
* Update dispol for libsepol avtab changes from Stephen Smalley.
26+
27+
2.0.8 2008-01-24
28+
* Deprecate role dominance in parser.
29+
30+
2.0.7 2008-01-02
31+
* Added support for policy capabilities from Todd Miller.
32+
33+
2.0.6 2007-11-15
34+
* Initialize the source file name from the command line argument so that checkpolicy/checkmodule report something more useful than "unknown source".
35+
36+
2.0.5 2007-11-01
37+
* Merged remove use of REJECT and trailing context in lex rules; make ipv4 address parsing like ipv6 from James Carter.
38+
39+
2.0.4 2007-09-18
40+
* Merged handle unknown policydb flag support from Eric Paris.
41+
Adds new command line options -U {allow, reject, deny} for selecting
42+
the flag when a base module or kernel policy is built.
43+
44+
2.0.3 2007-05-31
45+
* Merged fix for segfault on duplicate require of sensitivity from Caleb Case.
46+
* Merged fix for dead URLs in checkpolicy man pages from Dan Walsh.
47+
48+
2.0.2 2007-04-12
49+
* Merged checkmodule man page fix from Dan Walsh.
50+
51+
2.0.1 2007-02-20
52+
* Merged patch to allow dots in class identifiers from Caleb Case.
53+
54+
2.0.0 2007-02-01
55+
* Merged patch to use new libsepol error codes by Karl MacMillan.
56+
57+
1.34.0 2007-01-18
58+
* Updated version for stable branch.
59+
60+
1.33.1 2006-11-13
61+
* Collapse user identifiers and identifiers together.
62+
63+
1.32 2006-10-17
64+
* Updated version for release.
65+
66+
1.30.12 2006-09-28
67+
* Merged user and range_transition support for modules from
68+
Darrel Goeddel
69+
70+
1.30.11 2006-09-05
71+
* merged range_transition enhancements and user module format
72+
changes from Darrel Goeddel
73+
74+
1.30.10 2006-08-03
75+
* Merged symtab datum patch from Karl MacMillan.
76+
77+
1.30.9 2006-06-29
78+
* Lindent.
79+
80+
1.30.8 2006-06-29
81+
* Merged patch to remove TE rule conflict checking from the parser
82+
from Joshua Brindle. This can only be done properly by the
83+
expander.
84+
85+
1.30.7 2006-06-27
86+
* Merged patch to make checkpolicy/checkmodule handling of
87+
duplicate/conflicting TE rules the same as the expander
88+
from Joshua Brindle.
89+
90+
1.30.6 2006-06-26
91+
* Merged optionals in base take 2 patch set from Joshua Brindle.
92+
93+
1.30.5 2006-05-05
94+
* Merged compiler cleanup patch from Karl MacMillan.
95+
* Merged fix warnings patch from Karl MacMillan.
96+
97+
1.30.4 2006-04-05
98+
* Changed require_class to reject permissions that have not been
99+
declared if building a base module.
100+
101+
1.30.3 2006-03-28
102+
* Fixed checkmodule to call link_modules prior to expand_module
103+
to handle optionals.
104+
105+
1.30.2 2006-03-28
106+
* Fixed require_class to avoid shadowing permissions already defined
107+
in an inherited common definition.
108+
109+
1.30.1 2006-03-22
110+
* Moved processing of role and user require statements to 2nd pass.
111+
112+
1.30 2006-03-14
113+
* Updated version for release.
114+
115+
1.29.5 2006-03-09
116+
* Fixed bug in role dominance (define_role_dom).
117+
118+
1.29.4 2006-02-14
119+
* Added a check for failure to declare each sensitivity in
120+
a level definition.
121+
122+
1.29.3 2006-02-13
123+
* Changed to clone level data for aliased sensitivities to
124+
avoid double free upon sens_destroy. Bug reported by Kevin
125+
Carr of Tresys Technology.
126+
127+
1.29.2 2006-02-13
128+
* Merged optionals in base patch from Joshua Brindle.
129+
130+
1.29.1 2006-02-01
131+
* Merged sepol_av_to_string patch from Joshua Brindle.
132+
133+
1.28 2005-12-07
134+
* Updated version for release.
135+
136+
1.27.20 2005-12-02
137+
* Merged checkmodule man page from Dan Walsh, and edited it.
138+
139+
1.27.19 2005-12-01
140+
* Added error checking of all ebitmap_set_bit calls for out of
141+
memory conditions.
142+
143+
1.27.18 2005-12-01
144+
* Merged removal of compatibility handling of netlink classes
145+
(requirement that policies with newer versions include the
146+
netlink class definitions, remapping of fine-grained netlink
147+
classes in newer source policies to single netlink class when
148+
generating older policies) from George Coker.
149+
150+
1.27.17 2005-10-25
151+
* Merged dismod fix from Joshua Brindle.
152+
153+
1.27.16 2005-10-20
154+
* Removed obsolete cond_check_type_rules() function and call and
155+
cond_optimize_lists() call from checkpolicy.c; these are handled
156+
during parsing and expansion now.
157+
158+
1.27.15 2005-10-19
159+
* Updated calls to expand_module for interface change.
160+
161+
1.27.14 2005-10-19
162+
* Changed checkmodule to verify that expand_module succeeds
163+
when building base modules.
164+
165+
1.27.13 2005-10-19
166+
* Merged module compiler fixes from Joshua Brindle.
167+
168+
1.27.12 2005-10-19
169+
* Removed direct calls to hierarchy_check_constraints() and
170+
check_assertions() from checkpolicy since they are now called
171+
internally by expand_module().
172+
173+
1.27.11 2005-10-18
174+
* Updated for changes to sepol policydb_index_others interface.
175+
176+
1.27.10 2005-10-17
177+
* Updated for changes to sepol expand_module and link_modules interfaces.
178+
179+
1.27.9 2005-10-13
180+
* Merged support for require blocks inside conditionals from
181+
Joshua Brindle (Tresys).
182+
183+
1.27.8 2005-10-06
184+
* Updated for changes to libsepol.
185+
186+
1.27.7 2005-10-05
187+
* Merged several bug fixes from Joshua Brindle (Tresys).
188+
189+
1.27.6 2005-10-03
190+
* Merged MLS in modules patch from Joshua Brindle (Tresys).
191+
192+
1.27.5 2005-09-28
193+
* Merged error handling improvement in checkmodule from Karl MacMillan (Tresys).
194+
195+
1.27.4 2005-09-26
196+
* Merged bugfix for dup role transition error messages from
197+
Karl MacMillan (Tresys).
198+
199+
1.27.3 2005-09-23
200+
* Merged policyver/modulever patches from Joshua Brindle (Tresys).
201+
202+
1.27.2 2005-09-20
203+
* Fixed parse_categories handling of undefined category.
204+
205+
1.27.1 2005-09-16
206+
* Merged bug fix for role dominance handling from Darrel Goeddel (TCS).
207+
208+
1.26 2005-09-06
209+
* Updated version for release.
210+
211+
1.25.12 2005-08-22
212+
* Fixed handling of validatetrans constraint expressions.
213+
Bug reported by Dan Walsh for checkpolicy -M.
214+
215+
1.25.11 2005-08-18
216+
* Merged use-after-free fix from Serge Hallyn (IBM).
217+
Bug found by Coverity.
218+
219+
1.25.10 2005-08-15
220+
* Fixed further memory leaks found by valgrind.
221+
222+
1.25.9 2005-08-15
223+
* Changed checkpolicy to destroy the policydbs prior to exit
224+
to allow leak detection.
225+
* Fixed several memory leaks found by valgrind.
226+
227+
1.25.8 2005-08-11
228+
* Updated checkpolicy and dispol for the new avtab format.
229+
Converted users of ebitmaps to new inline operators.
230+
Note: The binary policy format version has been incremented to
231+
version 20 as a result of these changes. To build a policy
232+
for a kernel that does not yet include these changes, use
233+
the -c 19 option to checkpolicy.
234+
235+
1.25.7 2005-08-11
236+
* Merged patch to prohibit use of "self" as a type name from Jason Tang (Tresys).
237+
238+
1.25.6 2005-08-10
239+
* Merged patch to fix dismod compilation from Joshua Brindle (Tresys).
240+
241+
1.25.5 2005-08-09
242+
* Fixed call to hierarchy checking code to pass the right policydb.
243+
244+
1.25.4 2005-08-02
245+
* Merged patch to update dismod for the relocation of the
246+
module read/write code from libsemanage to libsepol, and
247+
to enable build of test subdirectory from Jason Tang (Tresys).
248+
249+
1.25.3 2005-07-18
250+
* Merged hierarchy check fix from Joshua Brindle (Tresys).
251+
252+
1.25.2 2005-07-06
253+
* Merged loadable module support from Tresys Technology.
254+
255+
1.25.1 2005-06-24
256+
* Merged patch to prohibit the use of * and ~ in type sets
257+
(other than in neverallow statements) and in role sets
258+
from Joshua Brindle (Tresys).
259+
260+
1.24 2005-06-20
261+
* Updated version for release.
262+
263+
1.23.4 2005-05-19
264+
* Merged cleanup patch from Dan Walsh.
265+
266+
1.23.3 2005-05-13
267+
* Added sepol_ prefix to Flask types to avoid namespace
268+
collision with libselinux.
269+
270+
1.23.2 2005-04-29
271+
* Merged identifier fix from Joshua Brindle (Tresys).
272+
273+
1.23.1 2005-04-13
274+
* Merged hierarchical type/role patch from Tresys Technology.
275+
* Merged MLS fixes from Darrel Goeddel of TCS.
276+
277+
1.22 2005-03-09
278+
* Updated version for release.
279+
280+
1.21.4 2005-02-17
281+
* Moved genpolusers utility to libsepol.
282+
* Merged range_transition support from Darrel Goeddel (TCS).
283+
284+
1.21.3 2005-02-16
285+
* Merged define_user() cleanup patch from Darrel Goeddel (TCS).
286+
287+
1.21.2 2005-02-09
288+
* Changed relabel Makefile target to use restorecon.
289+
290+
1.21.1 2005-01-26
291+
* Merged enhanced MLS support from Darrel Goeddel (TCS).
292+
293+
1.20 2005-01-04
294+
* Merged typeattribute statement patch from Darrel Goeddel of TCS.
295+
* Changed genpolusers to handle multiple user config files.
296+
* Merged nodecon ordering patch from Chad Hanson of TCS.
297+
298+
1.18 2004-10-07
299+
* MLS build fix.
300+
* Fixed Makefile dependencies (Chris PeBenito).
301+
* Merged fix for role dominance ordering issue from Chad Hanson of TCS.
302+
* Preserve portcon ordering and apply more checking.
303+
304+
1.16 2004-08-13
305+
* Allow empty conditional clauses.
306+
* Moved genpolbools utility to libsepol.
307+
* Updated for libsepol set functions.
308+
* Changed to link with libsepol.a.
309+
* Moved core functionality into libsepol.
310+
* Merged bug fix for conditional self handling from Karl MacMillan, Dave Caplan, and Joshua Brindle of Tresys.
311+
* Added genpolusers program.
312+
* Fixed bug in checkpolicy conditional code.
313+
314+
1.14 2004-06-28
315+
* Merged fix for MLS logic from Daniel Thayer of TCS.
316+
* Require semicolon terminator for typealias statement.
317+
318+
1.12 2004-06-16
319+
* Merged fine-grained netlink class support.
320+
321+
1.10 2004-04-07
322+
* Merged ipv6 support from James Morris of RedHat.
323+
* Fixed compute_av bug discovered by Chad Hanson of TCS.
324+
325+
1.8 2004-03-09
326+
* Merged policydb MLS patch from Chad Hanson of TCS.
327+
* Fixed mmap of policy file.
328+
329+
1.6 2004-02-18
330+
* Merged conditional policy extensions from Tresys Technology.
331+
* Added typealias declaration support per Russell Coker's request.
332+
* Added support for excluding types from type sets based on
333+
a patch by David Caplan, but reimplemented as a change to the
334+
policy grammar.
335+
* Merged patch from Colin Walters to report source file name and line
336+
number for errors when available.
337+
* Un-deprecated role transitions.
338+
339+
1.4 2003-12-01
340+
* Regenerated headers.
341+
* Merged patches from Bastian Blank and Joerg Hoh.
342+
343+
1.2 2003-09-30
344+
* Merged MLS build patch from Karl MacMillan of Tresys.
345+
* Merged checkpolicy man page from Magosanyi Arpad.
346+
347+
1.1 2003-08-13
348+
* Fixed endian bug in policydb_write for behavior value.
349+
* License -> GPL.
350+
* Merged coding style cleanups from James Morris.
351+
352+
1.0 2003-07-11
353+
* Initial public release.
354+

0 commit comments

Comments
 (0)