]> git.proxmox.com Git - systemd.git/blame - src/login/logind-acl.h
New upstream version 236
[systemd.git] / src / login / logind-acl.h
CommitLineData
52ad194e 1/* SPDX-License-Identifier: LGPL-2.1+ */
663996b3
MS
2#pragma once
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
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
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
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
663996b3 23#include <stdbool.h>
4c89c718 24#include <sys/types.h>
db2df898
MP
25
26#include "libudev.h"
663996b3 27
f5e65279 28#if HAVE_ACL
663996b3
MS
29
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);
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