The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Непонятная ситуация с ядром 2.6.32.8-grsec, !*! tipsy, 31-Окт-10, 13:53  [смотреть все]
Задача - протестировать систему на уязвимость к "x86_64 0day" с помощью robert_you_suck.c

$ uname -a
Linux 2.6.32.8-grsec-2.1.14-modsign-xeon-64 #2 SMP Sat Mar 13 00:42:43 PST 2010 x86_64 GNU/Linux

/initrd.img -> boot/initrd.img-2.6.26-2-amd64
/vmlinuz -> boot/vmlinuz-2.6.26-2-amd64

$ ls -l /boot


drwxr-xr-x  3 root root    4096 Sep 18 02:28 ./
drwxr-xr-x 25 root root    4096 Aug  7 03:04 ../
-rw-r--r--  1 root root 1225451 Mar 13  2009 System.map-2.6.26-1-amd64
-rw-r--r--  1 root root 1226655 Sep 16 10:01 System.map-2.6.26-2-amd64
-rw-r--r--  1 root root   85588 Mar 13  2009 config-2.6.26-1-amd64
-rw-r--r--  1 root root   85694 Sep 16 10:01 config-2.6.26-2-amd64
drwxr-xr-x  2 root root    4096 Sep 18 02:29 grub/
-rw-r--r--  1 root root 6928695 Apr 29  2010 initrd.img-2.6.26-1-amd64
-rw-r--r--  1 root root 6651999 Mar  5  2009 initrd.img-2.6.26-1-amd64.bak
-rw-r--r--  1 root root 6939881 Sep 18 02:28 initrd.img-2.6.26-2-amd64
-rw-r--r--  1 root root 6936102 Apr 29  2010 initrd.img-2.6.26-2-amd64.bak
-rw-r--r--  1 root root 1755120 Mar 13  2009 vmlinuz-2.6.26-1-amd64
-rw-r--r--  1 root root 1756880 Sep 16 10:00 vmlinuz-2.6.26-2-amd64

$ cat /boot/grub/menu.lst


#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 10

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1


serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=4 serial console

title vmlinuz-2.6.26-1-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda1 console=tty0 console=ttyS0,115200
initrd /boot/initrd.img-2.6.26-1-amd64


### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2fd70bf7-9a2d-43a9-b98a-e72409caf5aa ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title        Debian GNU/Linux, kernel 2.6.26-2-amd64
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.26-2-amd64 root=UUID=2fd70bf7-9a2d-43a9-b98a-e72409caf5aa ro
initrd        /boot/initrd.img-2.6.26-2-amd64

title        Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.26-2-amd64 root=UUID=2fd70bf7-9a2d-43a9-b98a-e72409caf5aa ro single
initrd        /boot/initrd.img-2.6.26-2-amd64

title        Debian GNU/Linux, kernel 2.6.26-1-amd64
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.26-1-amd64 root=UUID=2fd70bf7-9a2d-43a9-b98a-e72409caf5aa ro
initrd        /boot/initrd.img-2.6.26-1-amd64

title        Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.26-1-amd64 root=UUID=2fd70bf7-9a2d-43a9-b98a-e72409caf5aa ro single
initrd        /boot/initrd.img-2.6.26-1-amd64

### END DEBIAN AUTOMAGIC KERNELS LIST  

$ cat /boot/System.map-2.6.26-2-amd64 | grep cred


ffffffff8029f782 T compute_creds
ffffffff802f1c01 T cap_bprm_apply_creds
ffffffff802f24fa T security_bprm_apply_creds
ffffffff802f250b T security_bprm_post_apply_creds
ffffffff802f339b t dummy_bprm_post_apply_creds
ffffffff802f44ab t dummy_bprm_apply_creds
ffffffff802fa1bc t selinux_bprm_post_apply_creds
ffffffff802fbac5 t selinux_bprm_apply_creds
ffffffff803652cb t credit_entropy_bits
ffffffff804d8190 r __ksymtab_compute_creds
ffffffff804e4560 r __kcrctab_compute_creds
ffffffff804ed5d2 r __kstrtab_compute_creds

$ nm /boot/vmlinuz-2.6.26-2-amd64
nm: /boot/vmlinuz-2.6.26-2-amd64: File format not recognized

Вопросы:
1) почему не совпадает версия в uname и в названии файла?
2) почему не задекларированы commit_creds и prepare_kernel_cred?
3) может у кого-то есть эта сборка (Mar 13 00:42:43) под рукой?




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру