aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2023-07-19 12:54:53 +0000
committerLibravatar GitHub <noreply@github.com>2023-07-19 12:54:53 +0000
commit9863f982ca148f687a56690e2aeed10014d05e59 (patch)
tree4bb5bddc7a92a66564031f61d67abe2d4a347500 /src
parentzsh: add shell completion for --tab (diff)
downloadfirejail-9863f982ca148f687a56690e2aeed10014d05e59.tar.gz
firejail-9863f982ca148f687a56690e2aeed10014d05e59.tar.zst
firejail-9863f982ca148f687a56690e2aeed10014d05e59.zip
modif: drop deprecated 'shell' option references (#5894)
The `shell` option has been removed. Remove stale references. This does NOT remove `shell none`-related code comments in: - src/firejail/fs_lib.c (L433-L441) - src/firejail/join.c (L415-L417) Relates to #5196. Suggested by #5891.
Diffstat (limited to 'src')
-rw-r--r--src/bash_completion/firejail.bash_completion.in4
-rw-r--r--src/fbuilder/build_profile.c1
-rw-r--r--src/firejail/main.c2
-rw-r--r--src/firejail/profile.c4
-rw-r--r--src/man/firejail-profile.5.in5
-rw-r--r--src/zsh_completion/_firejail.in2
6 files changed, 3 insertions, 15 deletions
diff --git a/src/bash_completion/firejail.bash_completion.in b/src/bash_completion/firejail.bash_completion.in
index 8e047ce90..98e3a035e 100644
--- a/src/bash_completion/firejail.bash_completion.in
+++ b/src/bash_completion/firejail.bash_completion.in
@@ -82,10 +82,6 @@ _firejail()
82 _filedir 82 _filedir
83 return 0 83 return 0
84 ;; 84 ;;
85 --shell)
86 _filedir
87 return 0
88 ;;
89 --net) 85 --net)
90 comps=$(__interfaces) 86 comps=$(__interfaces)
91 COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) 87 COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
diff --git a/src/fbuilder/build_profile.c b/src/fbuilder/build_profile.c
index 75f1c10d7..96ddd79fb 100644
--- a/src/fbuilder/build_profile.c
+++ b/src/fbuilder/build_profile.c
@@ -143,7 +143,6 @@ void build_profile(int argc, char **argv, int index, FILE *fp) {
143 fprintf(fp, "#novideo\t# disable video capture devices\n"); 143 fprintf(fp, "#novideo\t# disable video capture devices\n");
144 build_protocol(trace_output, fp); 144 build_protocol(trace_output, fp);
145 fprintf(fp, "seccomp !chroot\t# allowing chroot, just in case this is an Electron app\n"); 145 fprintf(fp, "seccomp !chroot\t# allowing chroot, just in case this is an Electron app\n");
146 fprintf(fp, "shell none\n");
147 fprintf(fp, "#tracelog\t# send blacklist violations to syslog\n"); 146 fprintf(fp, "#tracelog\t# send blacklist violations to syslog\n");
148 fprintf(fp, "\n"); 147 fprintf(fp, "\n");
149 148
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 45b199db4..b0d5dac17 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -2806,7 +2806,7 @@ int main(int argc, char **argv, char **envp) {
2806 // already handled 2806 // already handled
2807 } 2807 }
2808 else if (strncmp(argv[i], "--shell=", 8) == 0) { 2808 else if (strncmp(argv[i], "--shell=", 8) == 0) {
2809 fprintf(stderr, "Warning: --shell feature has been deprecated\n"); 2809 fprintf(stderr, "Error: \"shell none\" is done by default now; the \"shell\" command has been removed\n");
2810 exit(1); 2810 exit(1);
2811 } 2811 }
2812 else if (strcmp(argv[i], "-c") == 0) { 2812 else if (strcmp(argv[i], "-c") == 0) {
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 07449f646..bdaaed433 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -371,8 +371,8 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
371 arg_caps_drop_all = 1; 371 arg_caps_drop_all = 1;
372 return 0; 372 return 0;
373 } 373 }
374 else if (strcmp(ptr, "shell none") == 0) { 374 else if (strcmp(ptr, "shell ") == 0) {
375 fprintf(stderr, "Warning: \"shell none\" command in the profile file is done by default; the command will be deprecated\n"); 375 fprintf(stderr, "Warning: \"shell none\" is done by default now; the \"shell\" command has been removed\n");
376 return 0; 376 return 0;
377 } 377 }
378 else if (strcmp(ptr, "tracelog") == 0) { 378 else if (strcmp(ptr, "tracelog") == 0) {
diff --git a/src/man/firejail-profile.5.in b/src/man/firejail-profile.5.in
index fa294d888..3a678b14f 100644
--- a/src/man/firejail-profile.5.in
+++ b/src/man/firejail-profile.5.in
@@ -799,11 +799,6 @@ Disable video capture devices.
799.TP 799.TP
800\fBmachine-id 800\fBmachine-id
801Spoof id number in /etc/machine-id file - a new random id is generated inside the sandbox. 801Spoof id number in /etc/machine-id file - a new random id is generated inside the sandbox.
802.TP
803\fBshell none
804Run the program directly, without a shell.
805
806
807#ifdef HAVE_NETWORK 802#ifdef HAVE_NETWORK
808.SH Networking 803.SH Networking
809Networking features available in profile files. 804Networking features available in profile files.
diff --git a/src/zsh_completion/_firejail.in b/src/zsh_completion/_firejail.in
index 455ba7e50..7e87bb991 100644
--- a/src/zsh_completion/_firejail.in
+++ b/src/zsh_completion/_firejail.in
@@ -160,8 +160,6 @@ _firejail_args=(
160 '*--seccomp.32.keep=-[enable seccomp filter, and whitelist the 32 bit syscalls specified by the command]: :' 160 '*--seccomp.32.keep=-[enable seccomp filter, and whitelist the 32 bit syscalls specified by the command]: :'
161 # FIXME: Add errnos 161 # FIXME: Add errnos
162 '--seccomp-error-action=-[change error code, kill process or log the attempt]: :(kill log)' 162 '--seccomp-error-action=-[change error code, kill process or log the attempt]: :(kill log)'
163 '--shell=none[run the program directly without a user shell]'
164 '--shell=-[set default user shell]: :_values $(cat /etc/shells)'
165 '--timeout=-[kill the sandbox automatically after the time has elapsed]: :' 163 '--timeout=-[kill the sandbox automatically after the time has elapsed]: :'
166 #'(--tracelog)--trace[trace open, access and connect system calls]' 164 #'(--tracelog)--trace[trace open, access and connect system calls]'
167 '(--tracelog)--trace=-[trace open, access and connect system calls]: :_files' 165 '(--tracelog)--trace=-[trace open, access and connect system calls]: :_files'