]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/login/logind-acl.h
terminal-util: introduce vt_release() helper
[thirdparty/systemd.git] / src / login / logind-acl.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
5eda94dd 3
5eda94dd 4#include <stdbool.h>
71d35b6b 5#include <sys/types.h>
07630cea 6
349cc4a5 7#if HAVE_ACL
2fb1aeda 8
5eda94dd
LP
9int devnode_acl(const char *path,
10 bool flush,
11 bool del, uid_t old_uid,
12 bool add, uid_t new_uid);
13
4f209af7 14int devnode_acl_all(const char *seat,
5eda94dd
LP
15 bool flush,
16 bool del, uid_t old_uid,
17 bool add, uid_t new_uid);
2fb1aeda
ZJS
18#else
19
20static inline int devnode_acl(const char *path,
21 bool flush,
22 bool del, uid_t old_uid,
23 bool add, uid_t new_uid) {
24 return 0;
25}
26
4f209af7 27static inline int devnode_acl_all(const char *seat,
2fb1aeda
ZJS
28 bool flush,
29 bool del, uid_t old_uid,
30 bool add, uid_t new_uid) {
31 return 0;
32}
33
34#endif