mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 03:18:03 +02:00
build: check for audit support before adding AmbientCapabilities feature
Currently the AmbientCapabilities are added even if meson didn't find audit or cap-ng.
This commit is contained in:
parent
cddd0a7c94
commit
6d2aaef098
1 changed files with 3 additions and 1 deletions
|
|
@ -574,7 +574,9 @@ else
|
|||
error('libaudit support requested but not found')
|
||||
endif
|
||||
# For the systemd system unit
|
||||
data_config.set('AMBIENT_CAPS', 'AmbientCapabilities=CAP_AUDIT_WRITE')
|
||||
if have_libaudit
|
||||
data_config.set('AMBIENT_CAPS', 'AmbientCapabilities=CAP_AUDIT_WRITE')
|
||||
endif
|
||||
endif
|
||||
config.set('HAVE_LIBAUDIT', have_libaudit)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue