chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: upgrade default $TERM from vt102 to vt220 if we have no idea about the connecte...
[elogind.git]
/
src
/
shared
/
acl-util.h
diff --git
a/src/shared/acl-util.h
b/src/shared/acl-util.h
index 31fbbcd51065eae97a069e9cfc2bbac434eedab0..a753ad14fdc24ad939c6f2b47493d1025abbaad5 100644
(file)
--- a/
src/shared/acl-util.h
+++ b/
src/shared/acl-util.h
@@
-21,4
+21,16
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <stdbool.h>
+
int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
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);
+}