From 68f3d2a96aaa8afd97fd028c8947afd679764bf1 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Fri, 17 Nov 2023 19:55:15 -0300 Subject: landlock: fix incomplete zsh completion This amends commit 13b2c566d ("feature: add Landlock support", 2023-10-24) / PR #6078. --- src/zsh_completion/_firejail.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/zsh_completion/_firejail.in b/src/zsh_completion/_firejail.in index 89cb1b84c..ac0554bc5 100644 --- a/src/zsh_completion/_firejail.in +++ b/src/zsh_completion/_firejail.in @@ -106,11 +106,14 @@ _firejail_args=( '--keep-fd[inherit open file descriptors to sandbox]: :' '--keep-shell-rc[do not copy shell rc files from /etc/skel]' '--keep-var-tmp[/var/tmp directory is untouched]' +#ifdef HAVE_LANDLOCK + '--landlock[add basic rules to the Landlock ruleset]' '--landlock.proc=-[add an access rule for /proc to the Landlock ruleset]: :(no ro rw)' '--landlock.read=-[add a read access rule for the path to the Landlock ruleset]: :_files' '--landlock.write=-[add a write access rule for the path to the Landlock ruleset]: :_files' '--landlock.special=-[add an access rule for the path to the Landlock ruleset for creating block/char devices, named pipes and sockets]: :_files' '--landlock.execute=-[add an execute access rule for the path to the Landlock ruleset]: :_files' +#endif '--machine-id[spoof /etc/machine-id with a random id]' '--memory-deny-write-execute[seccomp filter to block attempts to create memory mappings that are both writable and executable]' '*--mkdir=-[create a directory]:' -- cgit v1.2.3-70-g09d2