Skip to content

Commit 7c3a7f9

Browse files
committed
acl: turn libacl dep into a dlopen() one
I initially didn't think it would be worth doing this, but I changed my mind. People out there quite successfully build systemd without ACL support, and that suggests life without it is quite possible. Moreover we only use it as very specific places: 1. in udev/logind for "uaccess" mgmt 2. in tmpfiles to implement explicitly configured acl changes 3. in journald/coredump/pstore to manage access to unpriv users 4. in pid1 to manage access to credential files 5. when shifting UIDs of container trees I specific container environments it should be entirely fine to live without all of these, hence let's pull this in on demand only.
1 parent ab2b430 commit 7c3a7f9

File tree

9 files changed

+276
-141
lines changed

9 files changed

+276
-141
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ conf.set10('ENABLE_POLKIT', install_polkit)
11831183
libacl = dependency('libacl',
11841184
required : get_option('acl'))
11851185
conf.set10('HAVE_ACL', libacl.found())
1186+
libacl_cflags = libacl.partial_dependency(includes: true, compile_args: true)
11861187

11871188
libaudit = dependency('audit',
11881189
required : get_option('audit'))

0 commit comments

Comments
 (0)