Had a strange one here today. I applied the latest update to FC3 on my box here, an update to selinux, and it started spewing errors all over the place! Of course, it would all be nice and easy if I was able to do a package rollback on my box, but, that’s another story!
Here’s what was updated:
[daragh@daragh lib]$ sudo tail /var/log/up2date
[Mon Jun 27 11:22:30 2005] up2date availablePackageList from network
[Mon Jun 27 11:22:40 2005] up2date installing packages: ['selinux-policy-targeted-1.17.30-3.13']
[Mon Jun 27 11:24:47 2005] up2date deleting /var/spool/up2date/selinux-policy-targeted-1.17.30-3.13.noarch.hdr
[Mon Jun 27 11:24:47 2005] up2date deleting /var/spool/up2date/selinux-policy-targeted-1.17.30-3.13.noarch.rpm
And here is the errors I got (unable to ls a lot of dirs, ssh out etc unless I sudo)
[daragh@daragh lib]$ ls
ls: error while loading shared libraries: /lib/tls/librt.so.1: cannot apply additional memory protection after relocation: Permission denied
[daragh@daragh lib]$ ssh db00
ssh: error while loading shared libraries: /lib/libutil.so.1: cannot apply additional memory protection after relocation: Permission denied
So, after a lot of head-scratching and poking about (and with a little help from some friends over in ILUG I realised that I had downloaded a new kernel recently as part of an update, but, had not actually rebooted into it.
So, a quick backup and reboot later (was forced into a hard reboot after the soft reboot hung), all was back working again.
So, there ya have it, even on linux, if in doubt, reboot!!
(ok, ok, I don’t actually advocate this, but, as you can see, in my scenario, it worked!!)