wok-current rev 22229

Up chkrootkit (0.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 11 22:57:56 2019 +0100 (2019-11-11)
parents 16a651b03774
children 666d642d79cb
files chkrootkit/receipt chkrootkit/stuff/spectre-meltdown-checker.sh linld/stuff/src/A20.ASM linld/stuff/src/_END.ASM linld/stuff/src/pipehole.awk
line diff
     1.1 --- a/chkrootkit/receipt	Mon Nov 11 17:53:05 2019 +0100
     1.2 +++ b/chkrootkit/receipt	Mon Nov 11 22:57:56 2019 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="chkrootkit"
     1.7 -VERSION="0.52"
     1.8 +VERSION="0.53"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Locally checks for signs of a rootkit."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -23,6 +23,7 @@
    1.13  genpkg_rules()
    1.14  {
    1.15  	mkdir -p $fs/usr/share/chkrootkit
    1.16 +	cp $stuff/spectre-meltdown-checker.sh $fs/usr/share/chkrootkit
    1.17  	for i in $(cd $src ; ls); do
    1.18  		case "$i" in
    1.19  		README*) cp $src/$i $fs/usr/share/chkrootkit;;
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/chkrootkit/stuff/spectre-meltdown-checker.sh	Mon Nov 11 22:57:56 2019 +0100
     2.3 @@ -0,0 +1,7 @@
     2.4 +#!/bin/sh
     2.5 +
     2.6 +wget -qO /tmp/$$.zip https://github.com/speed47/spectre-meltdown-checker/archive/master.zip
     2.7 +unzip -q /tmp/$$.zip -d /tmp
     2.8 +mv /tmp/spectre-meltdown-checker-master/spectre-meltdown-checker.sh /bin
     2.9 +rm -rf /tmp/spectre-meltdown-checker /tmp/$$.zip
    2.10 +/bin/spectre-meltdown-checker.sh
     3.1 --- a/linld/stuff/src/A20.ASM	Mon Nov 11 17:53:05 2019 +0100
     3.2 +++ b/linld/stuff/src/A20.ASM	Mon Nov 11 22:57:56 2019 +0100
     3.3 @@ -118,7 +118,8 @@
     3.4  		test	[_cpu386],cl
     3.5  		jne	@bzimage
     3.6  		mov	bx,offset bzimage86
     3.7 -		jmp	godie
     3.8 +@godie:
     3.9 +		call	near die
    3.10  @zimage:
    3.11  		xchg	ax,dx
    3.12  		cmp	ax,cx
    3.13 @@ -142,7 +143,7 @@
    3.14  		endif
    3.15  		mov	cl,12
    3.16  		shl	dx,cl
    3.17 -		jc	@overflow
    3.18 +		jc	@jbe_overflow
    3.19  @bzimage:
    3.20  		extrn	_topseg:near
    3.21  		call	near _topseg
    3.22 @@ -186,16 +187,19 @@
    3.23  		and	ch,[_vcpi]
    3.24  		endif
    3.25  		add	dh,ch		; room for malloc_bufv_or_die
    3.26 -		cmp	dx,ax
    3.27 -		jb	@nooverflow
    3.28 -@overflow:
    3.29 +		cmp	ax,dx
    3.30 +		les	cx,[bx-4]	; rm size
    3.31 +		mov	si,es		; rm data
    3.32 +@jbe_overflow:
    3.33  ; Oops! We can stomp on our toes... better stop now
    3.34  		mov	bx,offset overflow
    3.35 -godie:
    3.36 +		ifdef	NO386
    3.37 +		jbe	@godie
    3.38 +		else
    3.39 +		ja	@nooverflow
    3.40  		call	near die
    3.41  @nooverflow:
    3.42 -		les	cx,[bx-4]	; rm size
    3.43 -		mov	si,es		; rm data
    3.44 +		endif
    3.45  		mov	es,ax
    3.46  @@move_clear:
    3.47  		movsb
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/linld/stuff/src/_END.ASM	Mon Nov 11 22:57:56 2019 +0100
     4.3 @@ -0,0 +1,27 @@
     4.4 +;***************************************************************
     4.5 +;****** This file is distributed under GPL
     4.6 +;***************************************************************
     4.7 +                ideal
     4.8 +                %crefref
     4.9 +                %noincl
    4.10 +                %nomacs
    4.11 +                p386
    4.12 +
    4.13 +        segment _TEXT byte public use16 'CODE'
    4.14 +        global  _text_end:byte
    4.15 +        label   _text_end byte
    4.16 +        ends    _TEXT
    4.17 +
    4.18 +        segment _DATA byte public use16 'DATA'
    4.19 +        global  _data_end:byte
    4.20 +        label   _data_end byte
    4.21 +        ends    _DATA
    4.22 +
    4.23 +        segment _BSS byte public use16 'BSS'
    4.24 +        global  _bss_end:byte
    4.25 +        label   _bss_end byte
    4.26 +        ends    _BSS
    4.27 +
    4.28 +        end
    4.29 +
    4.30 +;###### END OF FILE ############################################
     5.1 --- a/linld/stuff/src/pipehole.awk	Mon Nov 11 17:53:05 2019 +0100
     5.2 +++ b/linld/stuff/src/pipehole.awk	Mon Nov 11 22:57:56 2019 +0100
     5.3 @@ -169,7 +169,6 @@
     5.4  			sub(/mov	dx,/,"les	dx,d")
     5.5  		}
     5.6  		sub(/,ax/,",es")
     5.7 -		if (/,dx/) isload=0
     5.8  		if (/add	ax,word ptr/) $0="	add	ax,cx"
     5.9  		if (/i\+29\],0/) {
    5.10  			sub(/,0$/,"")