]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/login/logind-acl.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / login / logind-acl.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
5eda94dd
LP
3
4/***
5 This file is part of systemd.
6
7 Copyright 2011 Lennart Poettering
5eda94dd
LP
8***/
9
5eda94dd 10#include <stdbool.h>
71d35b6b 11#include <sys/types.h>
07630cea
LP
12
13#include "libudev.h"
5eda94dd 14
349cc4a5 15#if HAVE_ACL
2fb1aeda 16
5eda94dd
LP
17int devnode_acl(const char *path,
18 bool flush,
19 bool del, uid_t old_uid,
20 bool add, uid_t new_uid);
21
22int 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);
2fb1aeda
ZJS
27#else
28
29static 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
36static 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