]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
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 |
9 | int devnode_acl(const char *path, |
10 | bool flush, | |
11 | bool del, uid_t old_uid, | |
12 | bool add, uid_t new_uid); | |
13 | ||
4f209af7 | 14 | int 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 | ||
20 | static 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 | 27 | static 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 |