diff options
author | 2022-08-29 08:54:33 -0400 | |
---|---|---|
committer | 2022-08-29 08:54:33 -0400 | |
commit | 836ffe37ff891886f15243eacc70963368d57a3f (patch) | |
tree | 55ab624f9645cb6962afe93d8aba93d64f3948a7 | |
parent | Merge pull request #5315 from ChrysoliteAzalea/landlock (diff) | |
download | firejail-836ffe37ff891886f15243eacc70963368d57a3f.tar.gz firejail-836ffe37ff891886f15243eacc70963368d57a3f.tar.zst firejail-836ffe37ff891886f15243eacc70963368d57a3f.zip |
compile fix
-rw-r--r-- | src/firejail/landlock.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c index 67e2b2cfc..e79d03280 100644 --- a/src/firejail/landlock.c +++ b/src/firejail/landlock.c | |||
@@ -1,3 +1,24 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2022 Firejail Authors | ||
3 | * | ||
4 | * This file is part of firejail project | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | |||
21 | #ifdef HAVE_LANDLOCK | ||
1 | #define _GNU_SOURCE | 22 | #define _GNU_SOURCE |
2 | #include <stdio.h> | 23 | #include <stdio.h> |
3 | #include <stddef.h> | 24 | #include <stddef.h> |
@@ -77,3 +98,4 @@ int add_execute_rule_by_path(int rset_fd,char *allowed_path) { | |||
77 | close(allowed_fd); | 98 | close(allowed_fd); |
78 | return result; | 99 | return result; |
79 | } | 100 | } |
101 | #endif | ||