aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/landlock.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2024-04-06 23:16:10 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2024-04-06 23:16:10 -0400
commit8259f66e1f6b54f0ea6039f5fd65a77cbb27dfd9 (patch)
tree238645e79abb534ed09dbbdde4e1ff4353531af8 /src/firejail/landlock.c
parentRELNOTES: add profile items (diff)
downloadfirejail-8259f66e1f6b54f0ea6039f5fd65a77cbb27dfd9.tar.gz
firejail-8259f66e1f6b54f0ea6039f5fd65a77cbb27dfd9.tar.zst
firejail-8259f66e1f6b54f0ea6039f5fd65a77cbb27dfd9.zip
landlock fix for old kernel versions
Diffstat (limited to 'src/firejail/landlock.c')
-rw-r--r--src/firejail/landlock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c
index 453ad8f10..44d7eeafa 100644
--- a/src/firejail/landlock.c
+++ b/src/firejail/landlock.c
@@ -294,4 +294,10 @@ void ll_add_profile(int type, const char *data) {
294 ptr->next = entry; 294 ptr->next = entry;
295} 295}
296 296
297#else
298void ll_add_profile(int type, const char *data) {
299 (void) type;
300 (void) data;
301}
302
297#endif /* HAVE_LANDLOCK */ 303#endif /* HAVE_LANDLOCK */