chiark / gitweb /
condition: add ConditionSecurity
authorMichal Schmidt <mschmidt@redhat.com>
Sun, 3 Apr 2011 16:16:59 +0000 (18:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 3 Apr 2011 20:16:37 +0000 (22:16 +0200)
commit07e833bc1d60e282b062eb205bb13215dc0e8cdf
tree6a633fb7489fd23049f35c2cd1b7487ee71376b9
parent41584525cf0a9d3a8bfb76008a3fc663b86bfdde
condition: add ConditionSecurity

Using ConditionSecurity a unit can depend on a security module being
enabled/disabled. For now the only recognized security module is SELinux.

I'd like to use this feature for a unit that creates /.autorelabel if
SELinux is disabled, to ensure a relabel is done automatically when the
system is later rebooted with SELinux enabled.
src/condition.c
src/condition.h
src/load-fragment.c