platform_external_selinux/checkpolicy
Stephen Smalley f8c110c8a6 libsepol,checkpolicy: remove use of hardcoded security class values
libsepol carried its own (outdated) copy of flask.h with the generated
security class and initial SID values for use by the policy
compiler and the forked copy of the security server code
leveraged by tools such as audit2why.  Convert libsepol and
checkpolicy entirely to looking up class values from the policy,
remove the SECCLASS_* definitions from its flask.h header, and move
the header with its remaining initial SID definitions private to
libsepol.  While we are here, fix the sepol_compute_sid() logic to
properly support features long since added to the policy and kernel,
although there are no users of it other than checkpolicy -d (debug)
and it is not exported to users of the shared library.  There
are still some residual differences between the kernel logic and
libsepol.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
2020-03-12 07:50:55 +01:00
..
ru Replace www.nsa.gov references by github.com/SELinuxProject 2019-11-08 09:20:29 -05:00
test libsepol,checkpolicy: remove use of hardcoded security class values 2020-03-12 07:50:55 +01:00
.gitignore Repo: update .gitignore 2011-08-02 13:31:51 -04:00
checkmodule.8 checkpolicy: Add --werror flag to checkmodule and checkpolicy to treat warnings as errors. 2020-03-11 14:39:39 -04:00
checkmodule.c libsepol,checkpolicy: remove use of hardcoded security class values 2020-03-12 07:50:55 +01:00
checkpolicy.8 checkpolicy: Add --werror flag to checkmodule and checkpolicy to treat warnings as errors. 2020-03-11 14:39:39 -04:00
checkpolicy.c libsepol,checkpolicy: remove use of hardcoded security class values 2020-03-12 07:50:55 +01:00
checkpolicy.h checkpolicy: remove unused te_assertions 2020-01-27 10:51:21 -05:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile Allow installing translated man pages 2019-01-28 12:03:57 +01:00
module_compiler.c checkpolicy: destroy the class datum if it fails to initialize 2018-05-30 22:00:13 +02:00
module_compiler.h checkpolicy: Separate tunable from boolean during compile. 2011-09-16 11:54:01 -04:00
parse_util.c Remove redundant if-clause 2019-06-19 09:03:12 -07:00
parse_util.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policy_define.c libsepol,checkpolicy: remove use of hardcoded security class values 2020-03-12 07:50:55 +01:00
policy_define.h checkpolicy: Add support for ibendportcon labels 2017-05-23 16:20:55 -04:00
policy_parse.y libsepol,checkpolicy: remove use of hardcoded security class values 2020-03-12 07:50:55 +01:00
policy_scan.l checkpolicy: Add --werror flag to checkmodule and checkpolicy to treat warnings as errors. 2020-03-11 14:39:39 -04:00
queue.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
queue.h checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
VERSION Update VERSIONs to 3.0 for release. 2019-11-28 13:46:48 +01:00