]> git.michaelhowe.org Git - packages/o/openafs.git/commit
SOLARIS: Reset syscalls on mod_install failure
authorAndrew Deason <adeason@sinenomine.net>
Thu, 19 May 2011 22:02:35 +0000 (17:02 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 May 2011 13:49:50 +0000 (06:49 -0700)
commitefc9605e03c8e17450aa0afdd329cd7ae5a549f9
tree9d6ae7898a9140f17177a8fe69d2a0da95ac3c93
parent0d02d71908a624406e730a334dd9e0ec5f2dbad8
SOLARIS: Reset syscalls on mod_install failure

If our call to mod_install fails for any reason (for example, if the
afs entry is missing from /etc/name_to_sysnum), we may still have set
the sysent structures for setgroups and ioctl to point at libafs code.
So calls to those syscalls will cause a panic, since the code they
point to is no longer loaded.

To avoid this, just reset the sysent entries back to what they were if
we fail to load, just like we do when unloading the module.

Reviewed-on: http://gerrit.openafs.org/4685
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ca425b7d49a2bf4c079aa38c0abf68596eca0b30)

Change-Id: Ifb2cd9848b5468c950b600052308370b7c8c2af9
Reviewed-on: http://gerrit.openafs.org/4687
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/SOLARIS/osi_vfsops.c