]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/login/logind-acl.h
Add SPDX license identifiers to source files under the LGPL
[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
8
9 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
5eda94dd
LP
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 17 Lesser General Public License for more details.
5eda94dd 18
5430f7f2 19 You should have received a copy of the GNU Lesser General Public License
5eda94dd
LP
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
5eda94dd 23#include <stdbool.h>
71d35b6b 24#include <sys/types.h>
07630cea
LP
25
26#include "libudev.h"
5eda94dd 27
349cc4a5 28#if HAVE_ACL
2fb1aeda 29
5eda94dd
LP
30int devnode_acl(const char *path,
31 bool flush,
32 bool del, uid_t old_uid,
33 bool add, uid_t new_uid);
34
35int devnode_acl_all(struct udev *udev,
36 const char *seat,
37 bool flush,
38 bool del, uid_t old_uid,
39 bool add, uid_t new_uid);
2fb1aeda
ZJS
40#else
41
42static inline int devnode_acl(const char *path,
43 bool flush,
44 bool del, uid_t old_uid,
45 bool add, uid_t new_uid) {
46 return 0;
47}
48
49static inline int devnode_acl_all(struct udev *udev,
50 const char *seat,
51 bool flush,
52 bool del, uid_t old_uid,
53 bool add, uid_t new_uid) {
54 return 0;
55}
56
57#endif