Package: fai-client
Version: 4.2.4
Severity: important

FAI uses exported function definitions in Bash, a feature that was
recently disabled by the CVEs around Shellshock.

During FAI runs (fai dirinstall in my case) there are plenty of
error messages:

/bin/bash: BASH_FUNC_task_softupdate(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_softupdate(): line 0: `BASH_FUNC_task_softupdate() () 
{  echo Performing FAI system update. All data may be overwritten!;'
/bin/bash: error importing function definition for `BASH_FUNC_task_softupdate'
/bin/bash: BASH_FUNC_ifclass(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_ifclass(): line 0: `BASH_FUNC_ifclass() () {  if [ $# -eq 
1 ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_ifclass'
/bin/bash: BASH_FUNC_mount_mirror(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_mount_mirror(): line 0: `BASH_FUNC_mount_mirror() () {  [ 
"$FAI_DEBMIRROR" ] || return;'
/bin/bash: error importing function definition for `BASH_FUNC_mount_mirror'
/bin/bash: BASH_FUNC__ifclass_or(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC__ifclass_or(): line 0: `BASH_FUNC__ifclass_or() () {  
local cl;'
/bin/bash: error importing function definition for `BASH_FUNC__ifclass_or'
/bin/bash: BASH_FUNC_wait_for_jobs(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_wait_for_jobs(): line 0: `BASH_FUNC_wait_for_jobs() () {  
local i=0;'
/bin/bash: error importing function definition for `BASH_FUNC_wait_for_jobs'
/bin/bash: BASH_FUNC_call_hook(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_call_hook(): line 0: `BASH_FUNC_call_hook() () {  local 
hook=$1;'
/bin/bash: error importing function definition for `BASH_FUNC_call_hook'
/bin/bash: BASH_FUNC_task_instsoft(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_instsoft(): line 0: `BASH_FUNC_task_instsoft() () {  
echo "Installing software may take a while";'
/bin/bash: error importing function definition for `BASH_FUNC_task_instsoft'
/bin/bash: BASH_FUNC_skiptask(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_skiptask(): line 0: `BASH_FUNC_skiptask() () {  local 
task;'
/bin/bash: error importing function definition for `BASH_FUNC_skiptask'
/bin/bash: BASH_FUNC_task_updatebase(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_updatebase(): line 0: `BASH_FUNC_task_updatebase() () 
{  if [ "$verbose" ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_updatebase'
/bin/bash: BASH_FUNC_clean_exit(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_clean_exit(): line 0: `BASH_FUNC_clean_exit() () {  rm -f 
$stamp;'
/bin/bash: error importing function definition for `BASH_FUNC_clean_exit'
/bin/bash: BASH_FUNC_call_debootstrap(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_call_debootstrap(): line 0: `BASH_FUNC_call_debootstrap() 
() {  local dversion=$(dpkg -l debootstrap | grep debootstrap | cut -f7 -d' ');'
/bin/bash: error importing function definition for `BASH_FUNC_call_debootstrap'
/bin/bash: BASH_FUNC_task_confdir(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_confdir(): line 0: `BASH_FUNC_task_confdir() () {  if 
[ $do_init_tasks -eq 1 ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_confdir'
/bin/bash: BASH_FUNC_task_debconf(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_debconf(): line 0: `BASH_FUNC_task_debconf() () {  if 
[ ! -d $FAI/debconf ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_debconf'
/bin/bash: BASH_FUNC_task_finish(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_finish(): line 0: `BASH_FUNC_task_finish() () {  if [ 
$do_init_tasks -eq 1 ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_finish'
/bin/bash: BASH_FUNC_task_tests(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_tests(): line 0: `BASH_FUNC_task_tests() () {  if [ 
-d $FAI/tests ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_tests'
/bin/bash: BASH_FUNC_task_defvar(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_defvar(): line 0: `BASH_FUNC_task_defvar() () {  
local svar=$LOGDIR/showvar.log;'
/bin/bash: error importing function definition for `BASH_FUNC_task_defvar'
/bin/bash: BASH_FUNC_task_repository(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_repository(): line 0: `BASH_FUNC_task_repository() () 
{  local hook cl hfile;'
/bin/bash: error importing function definition for `BASH_FUNC_task_repository'
/bin/bash: BASH_FUNC_set_disk_info(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_set_disk_info(): line 0: `BASH_FUNC_set_disk_info() () {  
disklist=$(fai-disk-info | sort | tr '\n' ' ')'
/bin/bash: error importing function definition for `BASH_FUNC_set_disk_info'
/bin/bash: BASH_FUNC_task_action(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_action(): line 0: `BASH_FUNC_task_action() () {  if [ 
-z "$FAI_ACTION" ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_action'
/bin/bash: BASH_FUNC_task_mountdisks(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_mountdisks(): line 0: `BASH_FUNC_task_mountdisks() () 
{  [ ! -f $LOGDIR/fstab ] && die "No $LOGDIR/fstab created.";'
/bin/bash: error importing function definition for `BASH_FUNC_task_mountdisks'
/bin/bash: BASH_FUNC_task_chboot(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_chboot(): line 0: `BASH_FUNC_task_chboot() () {  [ -z 
"$LOGUSER" ] && return;'
/bin/bash: error importing function definition for `BASH_FUNC_task_chboot'
/bin/bash: BASH_FUNC_define_fai_flags(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_define_fai_flags(): line 0: `BASH_FUNC_define_fai_flags() 
() {  local flag;'
/bin/bash: error importing function definition for `BASH_FUNC_define_fai_flags'
/bin/bash: BASH_FUNC_umount_csspace(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_umount_csspace(): line 0: `BASH_FUNC_umount_csspace() () { 
 if [[ $FAI_CONFIG_SRC =~ ^nfs:// ]]; then'
/bin/bash: error importing function definition for `BASH_FUNC_umount_csspace'
/bin/bash: BASH_FUNC_jobsrunning(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_jobsrunning(): line 0: `BASH_FUNC_jobsrunning() () {  ps r 
| egrep -qv "ps r|TIME COMMAND|rcS"'
/bin/bash: error importing function definition for `BASH_FUNC_jobsrunning'
/bin/bash: BASH_FUNC__defvar(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC__defvar(): line 0: `BASH_FUNC__defvar() () {  local 
showvar=1;'
/bin/bash: error importing function definition for `BASH_FUNC__defvar'
/bin/bash: BASH_FUNC_task_install(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_install(): line 0: `BASH_FUNC_task_install() () {  
echo $$ > $stamp;'
/bin/bash: error importing function definition for `BASH_FUNC_task_install'
/bin/bash: BASH_FUNC_task_savelog(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_savelog(): line 0: `BASH_FUNC_task_savelog() () {  
mkdir -p $FAI_ROOT/var/{lib,log}/fai;'
/bin/bash: error importing function definition for `BASH_FUNC_task_savelog'
/bin/bash: BASH_FUNC_eval_cmdline(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_eval_cmdline(): line 0: `BASH_FUNC_eval_cmdline() () {  
local word;'
/bin/bash: error importing function definition for `BASH_FUNC_eval_cmdline'
/bin/bash: BASH_FUNC__ifclass(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC__ifclass(): line 0: `BASH_FUNC__ifclass() () {  [ 
"${debug:-}" ] && echo "Test if class $1 is in ${classes:-}" 1>&2;'
/bin/bash: error importing function definition for `BASH_FUNC__ifclass'
/bin/bash: BASH_FUNC_task_configure(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_configure(): line 0: `BASH_FUNC_task_configure() () { 
 fai-do-scripts $FAI/scripts;'
/bin/bash: error importing function definition for `BASH_FUNC_task_configure'
/bin/bash: BASH_FUNC_defnop(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_defnop(): line 0: `BASH_FUNC_defnop() () {  local name;'
/bin/bash: error importing function definition for `BASH_FUNC_defnop'
/bin/bash: BASH_FUNC__ifclass_and(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC__ifclass_and(): line 0: `BASH_FUNC__ifclass_and() () {  
local cl;'
/bin/bash: error importing function definition for `BASH_FUNC__ifclass_and'
/bin/bash: BASH_FUNC_stop_fai_installation(): line 0: syntax error near 
unexpected token `)'
/bin/bash: BASH_FUNC_stop_fai_installation(): line 0: 
`BASH_FUNC_stop_fai_installation() () {  sendmon "TASKEND $taskname 
$task_error";'
/bin/bash: error importing function definition for 
`BASH_FUNC_stop_fai_installation'
/bin/bash: BASH_FUNC_task_partition(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_partition(): line 0: `BASH_FUNC_task_partition() () { 
 if [ X$USE_SETUP_STORAGE = X1 ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_partition'
/bin/bash: BASH_FUNC_sendmon(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_sendmon(): line 0: `BASH_FUNC_sendmon() () {  echo "$*" >> 
$LOGDIR/fai-monitor.log;'
/bin/bash: error importing function definition for `BASH_FUNC_sendmon'
/bin/bash: BASH_FUNC_catnc(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_catnc(): line 0: `BASH_FUNC_catnc() () {  egrep -v "^#" $@'
/bin/bash: error importing function definition for `BASH_FUNC_catnc'
/bin/bash: BASH_FUNC_task_dirinstall(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_dirinstall(): line 0: `BASH_FUNC_task_dirinstall() () 
{  mkdir -p $FAI_ROOT;'
/bin/bash: error importing function definition for `BASH_FUNC_task_dirinstall'
/bin/bash: BASH_FUNC_task_extrbase(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_extrbase(): line 0: `BASH_FUNC_task_extrbase() () {  
local fs=$FAI_ROOT/etc/fstab;'
/bin/bash: error importing function definition for `BASH_FUNC_task_extrbase'
/bin/bash: BASH_FUNC_task_faiend(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_faiend(): line 0: `BASH_FUNC_task_faiend() () {  
local dir cdromdevice;'
/bin/bash: error importing function definition for `BASH_FUNC_task_faiend'
/bin/bash: BASH_FUNC_rwmount(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_rwmount(): line 0: `BASH_FUNC_rwmount() () {  mount -o 
rw,remount $1'
/bin/bash: error importing function definition for `BASH_FUNC_rwmount'
/bin/bash: BASH_FUNC_task_defclass(): line 0: syntax error near unexpected 
token `)'
/bin/bash: BASH_FUNC_task_defclass(): line 0: `BASH_FUNC_task_defclass() () {  
if [ ! -d $FAI/class ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_task_defclass'
/bin/bash: BASH_FUNC_task(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_task(): line 0: `BASH_FUNC_task() () {  local taskname=$1;'
/bin/bash: error importing function definition for `BASH_FUNC_task'
/bin/bash: BASH_FUNC_task_error(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_error(): line 0: `BASH_FUNC_task_error() () {  [ X$2 
= X0 ] && return;'
/bin/bash: error importing function definition for `BASH_FUNC_task_error'
/bin/bash: BASH_FUNC_task_setup(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_task_setup(): line 0: `BASH_FUNC_task_setup() () {  [ -f 
$FAI/hooks/subroutines ] && . $FAI/hooks/subroutines;'
/bin/bash: error importing function definition for `BASH_FUNC_task_setup'
/bin/bash: BASH_FUNC_die(): line 0: syntax error near unexpected token `)'
/bin/bash: BASH_FUNC_die(): line 0: `BASH_FUNC_die() () {  task_savelog;'
/bin/bash: error importing function definition for `BASH_FUNC_die'
/bin/bash: BASH_FUNC_save_dmesg(): line 0: syntax error near unexpected token 
`)'
/bin/bash: BASH_FUNC_save_dmesg(): line 0: `BASH_FUNC_save_dmesg() () {  if [ 
-x /usr/sbin/logtail ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_save_dmesg'

I'm tending to call this an RC bug, actually.

regards,
-mika-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2014-10-07t09-06...@devnull.michael-prokop.at

Reply via email to