selinux/libsemanage/src
Eric Paris 60c780ffb6 libsemanage: change module disabled from rename to symlink
Change the way libsemanage handles disabled modules.  In the current
method libsemanage renames the FOO.pp file to FOO.pp.disabled and then
the rebuild process ignores *.disabled modules.

Since we want to start shipping

/etc/selinux/targeted/modules/active/modules/*.pp within the payload of
the rpm.  If we continued this method, a policy update would re-enable a
module.

The new mechanism will just create a symbolic link between FOO.pp and
FOO.pp.disabled.  Then the library will check all modules, and if a
module has a link, it will not be compiled into the policy.  This solves
the rpm update problem. and actually gives us an easier update
capability since if FOO.pp.disabled already exists using the old method,
it will continue to work with the new method.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2011-09-15 17:17:48 -04:00
..
.gitignore libsemanage: throw exceptions in python rather than return NULL 2011-08-11 23:35:52 -04:00
boolean_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
boolean_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_active.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_activedb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_policydb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
conf-parse.y libsemanage: introduce semanage_set_root and friends 2011-08-11 23:35:52 -04:00
conf-scan.l Patch to run genhomedircon without looking at /etc/passwd 2010-03-06 17:56:23 -05:00
context_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_activedb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_activedb.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_file.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_join.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_join.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_llist.c Author: "Justin P. Mattock" 2010-12-08 18:16:42 -05:00
database_llist.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_policydb.c Author: "Justin P. Mattock" 2010-12-08 18:16:42 -05:00
database_policydb.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database.c libsemanage: drop the -no-unused-parameter build flag 2011-08-01 13:40:20 -04:00
database.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
debug.c Author: "Justin P. Mattock" 2010-12-08 18:16:42 -05:00
debug.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
direct_api.c libsemanage: change module disabled from rename to symlink 2011-09-15 17:17:48 -04:00
direct_api.h libsemanage: Enable configuration of bzip behavior 2009-08-05 08:33:34 -04:00
dso.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
exception.sh libsemanage: throw exceptions in python rather than return NULL 2011-08-11 23:35:52 -04:00
fcontext_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fcontext_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fcontexts_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fcontexts_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fcontexts_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
genhomedircon.c libsemanage: patch for MCS/MLS in user files 2011-08-11 23:35:52 -04:00
genhomedircon.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
handle_internal.h libsemanage: introduce semanage_set_root and friends 2011-08-11 23:35:52 -04:00
handle.c libsemanage: introduce semanage_set_root and friends 2011-08-11 23:35:52 -04:00
handle.h libsemanage: Add function to turn off file contexts validation 2009-10-22 13:53:19 -04:00
iface_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
iface_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_policydb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
libsemanage.map libsemanage: introduce semanage_set_root and friends 2011-08-11 23:35:52 -04:00
libsemanage.pc.in updated libselinux pkgconfig does not work correctly on lib64 machines. 2010-03-06 18:06:43 -05:00
Makefile libsemanage: python wrapper makefile changes 2011-08-26 14:27:54 -04:00
module_internal.h Last attempt at upstreaming semodule_disable patch. 2010-03-06 17:56:24 -05:00
modules.c Last attempt at upstreaming semodule_disable patch. 2010-03-06 17:56:24 -05:00
modules.h Last attempt at upstreaming semodule_disable patch. 2010-03-06 17:56:24 -05:00
node_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
node_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_policydb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
parse_utils.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
parse_utils.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policy_components.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policy.h Last attempt at upstreaming semodule_disable patch. 2010-03-06 17:56:24 -05:00
port_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
port_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_policydb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
pywrap-test.py initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semanage_conf.h Patch to run genhomedircon without looking at /etc/passwd 2010-03-06 17:56:23 -05:00
semanage_store.c libsemanage: change module disabled from rename to symlink 2011-09-15 17:17:48 -04:00
semanage_store.h libsemanage: change module disabled from rename to symlink 2011-09-15 17:17:48 -04:00
semanage.conf initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semanageswig_python.i libsemanage: throw exceptions in python rather than return NULL 2011-08-11 23:35:52 -04:00
semanageswig_ruby.i libsemanage: Add Ruby Bindings 2009-05-28 10:53:11 -04:00
semanageswig.i initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seuser_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seuser_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seusers_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seusers_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seusers_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_base_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_extra_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_base_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_base_policydb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_extra_file.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_join.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
utilities.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
utilities.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00