]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/login/logind-acl.h
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / src / login / logind-acl.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5 #include <sys/types.h>
6
7 #include "libudev.h"
8
9 #if HAVE_ACL
10
11 int devnode_acl(const char *path,
12 bool flush,
13 bool del, uid_t old_uid,
14 bool add, uid_t new_uid);
15
16 int devnode_acl_all(struct udev *udev,
17 const char *seat,
18 bool flush,
19 bool del, uid_t old_uid,
20 bool add, uid_t new_uid);
21 #else
22
23 static inline int devnode_acl(const char *path,
24 bool flush,
25 bool del, uid_t old_uid,
26 bool add, uid_t new_uid) {
27 return 0;
28 }
29
30 static inline int devnode_acl_all(struct udev *udev,
31 const char *seat,
32 bool flush,
33 bool del, uid_t old_uid,
34 bool add, uid_t new_uid) {
35 return 0;
36 }
37
38 #endif