]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/login/logind-acl.h
Merge pull request #8417 from brauner/2018-03-09/add_bind_mount_fallback_to_private_d...
[thirdparty/systemd.git] / src / login / logind-acl.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2011 Lennart Poettering
8 ***/
9
10 #include <stdbool.h>
11 #include <sys/types.h>
12
13 #include "libudev.h"
14
15 #if HAVE_ACL
16
17 int devnode_acl(const char *path,
18 bool flush,
19 bool del, uid_t old_uid,
20 bool add, uid_t new_uid);
21
22 int devnode_acl_all(struct udev *udev,
23 const char *seat,
24 bool flush,
25 bool del, uid_t old_uid,
26 bool add, uid_t new_uid);
27 #else
28
29 static inline int devnode_acl(const char *path,
30 bool flush,
31 bool del, uid_t old_uid,
32 bool add, uid_t new_uid) {
33 return 0;
34 }
35
36 static inline int devnode_acl_all(struct udev *udev,
37 const char *seat,
38 bool flush,
39 bool del, uid_t old_uid,
40 bool add, uid_t new_uid) {
41 return 0;
42 }
43
44 #endif