From: Francois Duchatelet (fdu_at_melexis.com)
Date: Fri 22 Apr 2005 - 11:53:33 BST
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi guys,
I have a very strange problem: even root on the host system can't remove a
symlink inside one of the vservers space.
Context:
Kernel 2.4.25
vserver patch 1.26
rh 7.3 host server
[root_at_ros1 opt]# rpm -qf `which lsattr`
e2fsprogs-1.35-7.1
[root_at_ros1 opt]# mount
...
/dev/md2 on /mnt/raidbak1 type ext3 (rw)
...
rostst1 is a RH73 vserver. I tried to unlink with the vserver running or
stopped
Session extract:
- ------------------------
[root_at_ros1 opt]# pwd
/mnt/raidbak1/vservers/rostst1/opt
[root_at_ros1 opt]# ls -l de?
lrwxrwxrwx 1 root root 3 Apr 22 12:07 de0 -> vm4
lrwxrwxrwx 1 root root 3 Oct 9 2004 dev -> vm4
[root_at_ros1 opt]# lsattr de?
- ------------- de0
- ------------- dev
[root_at_ros1 opt]# strace -e trace=file rm -f dev
...
lstat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("dev", {st_mode=S_IFLNK|0777, st_size=3, ...}) = 0
unlink("dev") = -1 EPERM (Operation not
permitted)
...
[root_at_ros1 opt]# rm -f de0
[root_at_ros1 opt]# ls -l de?
lrwxrwxrwx 1 root root 3 Oct 9 2004 dev -> vm4
- --------------------------------
The problem symlink is 'dev'.
'de0' is another symlink I just created to compare: this one can be removed
whithout any problems.
While the vserver was stopped, I checked with 'lsof' that no processes
would have a file opened using that link. Which is obviously not that case.
For the moment, it is just slightly annoying, because I can work around.
But I have some other files around which also show the same behaviour. It's
like a virus: it's spreading :-).
I'm stuck here.
Are there other tools I can use to track this problem ?
TIA
François Duchatelet,
Ariane Services
Rue du Verregat, 12
B-1020 Brussels
TEL:+32(2)479.37.59 - FAX:+32(2)478.14.20
Mobile:+32(486)13.07.85 - +31 (6) 47044881
GPS: 4°19'59" E 50°54'03" N
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQmjXouXix9dFBcbpEQIpigCfTGSuYQTEdzQPyHvv+AKxumr8hxIAoK0M
7Boq/CNXJp+kMnNsxvVGKKbK
=szZG
-----END PGP SIGNATURE-----
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver