-Dselinux=enabled \
%{?arg_selinux_mount} \
-Dapparmor=disabled \
- -Dapparmor_profiles=false \
+ -Dapparmor_profiles=disabled \
-Dsecdriver_apparmor=disabled \
-Dudev=enabled \
-Dyajl=enabled \
conf.set_quoted('APPARMOR_PROFILES_PATH', '/sys/kernel/security/apparmor/profiles')
endif
-if get_option('apparmor_profiles')
+if not get_option('apparmor_profiles').disabled()
+ apparmor_profiles_enable = true
+
if not conf.has('WITH_APPARMOR')
- error('Cannot enable apparmor_profiles without apparmor')
+ apparmor_profiles_enable = false
+ if get_option('apparmor_profiles').enabled()
+ error('Cannot enable apparmor_profiles without apparmor')
+ endif
+ endif
+
+ if apparmor_profiles_enable
+ conf.set('WITH_APPARMOR_PROFILES', 1)
endif
- conf.set('WITH_APPARMOR_PROFILES', 1)
endif
# FIXME rewrite to use dependency() once we can use 2.4.48
option('driver_vz', type: 'feature', value: 'auto', description: 'Virtuozzo driver')
option('secdriver_apparmor', type: 'feature', value: 'auto', description: 'use AppArmor security driver')
-option('apparmor_profiles', type: 'boolean', value: false, description: 'install apparmor profiles')
+option('apparmor_profiles', type: 'feature', value: 'disabled', description: 'install apparmor profiles')
option('secdriver_selinux', type: 'feature', value: 'auto', description: 'use SELinux security driver')
-Dcurl=enabled \
-Ddocs=enabled \
-Dapparmor=disabled \
- -Dapparmor_profiles=false \
+ -Dapparmor_profiles=disabled \
-Dattr=disabled \
-Daudit=disabled \
-Dbash_completion=disabled \