- 论坛徽章:
- 0
|
RHEL5.3X64测试通过
系统环境:
[zhuxj@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[zhuxj@localhost ~]$ lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Release: 5.3
Codename: Tikanga
[zhuxj@localhost ~]$ rpm -q udev
udev-095-14.19.el5
测试:
[zhuxj@localhost ~]$ id
uid=500(zhuxj) gid=500(zhuxj) groups=500(zhuxj) context=user_u:system_r:unconfined_t
[zhuxj@localhost ~]$ ls
a
[zhuxj@localhost ~]$ ps aux | grep udev
root 410 0.0 0.1 13648 1892 ? S<s May01 0:01 /sbin/udevd -d
zhuxj 22648 0.0 0.0 61156 728 pts/0 R+ 08:33 0:00 grep udev
[zhuxj@localhost ~]$ cat /proc/net/netlink
sk Eth Pid Groups Rmem Wmem Dump Locks
ffff810033a0bc00 0 2557 00000111 0 0 0000000000000000 2
ffff810034bb9c00 0 15815 00020100 0 0 0000000000000000 2
ffff81003fea3400 0 0 00000000 0 0 0000000000000000 2
ffff81003f589400 6 0 00000000 0 0 0000000000000000 2
ffff81003e24b000 7 2218 00000001 0 0 0000000000000000 2
ffff810037dd2000 7 0 00000000 0 0 0000000000000000 2
ffff81003f9afc00 9 0 00000000 0 0 0000000000000000 2
ffff81003e984400 9 1997 00000000 0 0 0000000000000000 2
ffff810037d67000 10 0 00000000 0 0 0000000000000000 2
ffff810037f82000 11 0 00000000 0 0 0000000000000000 2
ffff81003e985400 12 0 00000000 0 0 0000000000000000 2
ffff81003fea3000 15 0 00000000 0 0 0000000000000000 2
ffff81003f5a3000 15 409 ffffffff 0 0 0000000000000000 2
ffff810037f66c00 16 0 00000000 0 0 0000000000000000 2
ffff81003f0d7000 18 0 00000000 0 0 0000000000000000 2
[zhuxj@localhost ~]$ sh a 409
suid.c: In function ‘main’:
suid.c:3: warning: incompatible implicit declaration of built-in function ‘execl’
/usr/bin/ld: cannot open output file /tmp/suid: Permission denied
collect2: ld returned 1 exit status
sh-3.2# id
uid=0(root) gid=0(root) groups=500(zhuxj) context=user_u:system_r:unconfined_t
sh-3.2#
安装补丁:
[root@localhost ~]# wget ftp://ftp.redhat.com/pub/redhat/ ... 14.20.el5_3.src.rpm
安装更新后,需要删除/tmp下相关文件,否则此Bug还是有效的。
[root@localhost ~]$ rm /tmp/{suid,udev,libno_ex.so.1.0}
[zhuxj@localhost ~]$ sh a 409
suid.c: In function ‘main’:
suid.c:3: warning: incompatible implicit declaration of built-in function ‘execl’
sh-3.2$ id
uid=500(zhuxj) gid=500(zhuxj) groups=500(zhuxj) context=user_u:system_r:unconfined_t |
|