From 34c10968cbe3b5591b3c0ce225b8694edd9709d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Jun 2014 22:02:18 +0200 Subject: coredump: optionally store coredumps on disk, not in the journal Introduce a new configuration file /etc/systemd/coredump.conf to configure when to place coredumps in the journal and when on disk. Since the coredumps are quite large, default to storing them only on disk. --- src/shared/acl-util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/shared/acl-util.h') diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h index 36ef490d7e..a753ad14fd 100644 --- a/src/shared/acl-util.h +++ b/src/shared/acl-util.h @@ -26,3 +26,11 @@ int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry); int calc_acl_mask_if_needed(acl_t *acl_p); int search_acl_groups(char*** dst, const char* path, bool* belong); + +static inline void acl_freep(acl_t *acl) { + + if (!*acl) + return; + + acl_free(*acl); +} -- cgit v1.2.3-54-g00ecf