LICENSE BSD
Add -ctime and -cellservdb options to the cmdebug man page and improve
example host names and SEE ALSO references.
(cherry picked from commit 110d5702ea51ce43fca6a5962d9ef8a0ec56d6eb)
LICENSE MIT
Nname() is used to concatenate two strings and is frequently used with
the first string being the name of the executable perhaps with a full
path. The static buffer specified is too small for a full path and
there was no protection against writing beyond the end of it.
(cherry picked from commit d5811091995b78d65e891b134aa0ad6955bbc30c)
LICENSE MIT
Apply the desired "follow symlinks/mountpoints" semantics to the single
component non-UNC case.
(cherry picked from commit 84989e6584e3808ae3f1959330b267feff2661f6)
LICENSE MIT
Add -cellservdb option to the cmdebug command.
This option will retrieve the volume location database information
for all cells known to the cache manager and output the data in the
format required by the CellServDB file.
This functionality is supported by the UNIX cache managers and
Windows cache managers 1.5.31 and later.
(cherry picked from commit b3fe9727b3e775348561bcbe0cf0c14cff82e597)
LICENSE MIT
Add support for RXAFS_GetCellServDB. Implemented by generalizing
RXAFS_GetCellByNum and special casing the index values to do the
right thing.
Conditionalize grabbing the callp->lock in the callback functions.
The race conditions in rx have long since been fixed and the potential
for deadlocks are too great.
Add a new flag CM_FLAG_NOPROBE for use in calls to cm_GetCell. When
set the newly discovered servers will not be immediately probed. Useful
when setting tokens, setting server preferences, or responding to cmdebug
callbacks.
(cherry picked from commit ae9dc9ad4ddd8313d24e457faf48bc15ccd2c86c)
LICENSE MIT
1. prevent stopping the smb_Listeners due to an ip addr change when the
LANA is determined either by registry assignment or loopback detection
2. add synchronization logic to prevent smb_Listener restarts prior to
smb_Listener thread stoppage
3. no longer permit panics from smb_Listener threads
4. move the probe logic from cm_IPAddrDaemon thread to the cm_Daemon
thread in order to avoid the loss of ip addr change events. If an
adapter stops and restarts fast enough there might not be anything
for us to do.
(cherry picked from commit 8b82cbeef760992c6e3d27f9f6ea1f4e0bb559ab)
LICENSE IPL10
FIXES 80463
Include linux/key-type.h in osi_groups.c, if it exists. Fix
do_sync_read test for recent kbuild (maybe break it for [some older 2.6]).
(cherry picked from commit 8569f67aee8ee0de26259397818ab3af69f18007)
LICENSE MIT
if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred. do not panic.
(cherry picked from commit a1b7be4ac3f073a2d64f46649e54a1ff99d2567b)
LICENSE MIT
Add a registry value "PioctlFollowMountPoint" to permit the use of the
old pioctl path evaluation behavior that always followed mountpoints
and symlinks.
(cherry picked from commit 845fb28de656d9886dd44cbf335833985ffc7d3b)
LICENSE MIT
Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.
(cherry picked from commit 69c9ab66a41236e987b44af9a3cb141adb1c2817)
LICENSE MIT
One of the challenges to deploying NIM has been the configuration of
AFS token acquisition. This patch adds a new registry key hierarchy
HKLM\SOFTWARE\OpenAFS\Client\Realms
which is used to configure the AFS Provider for a new identity based
upon the realm of the identity. The Realms key contains subkeys for
each realm for which configuration data is being provided
HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"
"RealmName" contains one optional value, "AFSEnabled", and subkeys for
each Cell that is to be added to the configuration. "AFSEnabled" defaults
to 0x01.
HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"\"CellName"
In "CellName", there are two optional values, "Realm" and "MethodName".
If the values are not specified, the automatic realm and method determination
algorithms are used.
These values can be added to an MSI transform or deployed via Group Policy.
(cherry picked from commit 521f139a89c2f078888b8bad37a495d23723a789)
LICENSE MIT
Add a new mutex "smb_StartedMutex" which is used to protect the
transitions between the various smb_ListenerState values.
(cherry picked from commit 5979a37e4e361bd9d2c52b6f6ef4bcce20a3124c)
LICENSE MIT
Do not pass strings generated from incoming network data to ??printf
as the format string. Instead use a format string of "%s". This protects
against %? expansions being inserted in the string.
(cherry picked from commit a05df915505ab3e77e46e39a5b232086c43fc8bf)
LICENSE IPL10
make syscall.o always be created, some makes don't deal with the implicit requirement
(cherry picked from commit 777a2840878af313e062c4885ae7002bad62bdf4)
LICENSE MIT
Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.
(cherry picked from commit 58efc5029c832e6b1456c36b599e7e33d62cd9c6)
LICENSE MIT
Close a refcount leak in bkg prefetch.
Do not stop prefetching simply because a buffer we want is already being
fetched. Instead skip the buffer and try to fetch the next one we require.
(cherry picked from commit b19c56edfa5f0e3ff95f32b006b9403f53dd406f)
LICENSE MIT
avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.
(cherry picked from commit 049bc4a637334c6e94661a60067ff6a27e5ad481)
LICENSE MIT
Log more power mgmt events.
Do not permit a smb reinitialization when in a suspended state
Periodically check to see if the LAN adapter is -1. If so, try to
reinitialize the smb stack.
(cherry picked from commit 6887c0e5b2b766b06c7e76a5ce28b84ed52df1d5)
LICENSE MIT
After a network change, test to see if the desired LAN adapter to bind
the Netbios Name to has changed. If so, stop the Netbios Network and
restart with the new LAN adapter.
This can happen on Vista after a suspend if the service wakes up before
the Loopback adapter re-initializes.
(cherry picked from commit f970985bc35ade50371a9299ad580d96ad04e979)
LICENSE MIT
If the requestd realm name is the empty string, copy the realm from the
resulting ticket for use in pts registration.
(cherry picked from commit 53acd2042d53d947b213ba4ee58378c89555a868)
LICENSE IPL10
If the realm name of the requested ticket is the empty string, decode
the actual service ticket to determine the actual realm. Obtaining the
actual realm prevents unnecessary pts registration failures.
(cherry picked from commit 8e3940c461f29483dcd71a5ba7cc59db89ea38e1)
LICENSE IPL10
with updates and configure support from Simon Wilkinson.
make aklog able to cope with referrals.
(cherry picked from commit 2d15ac79349678e025f407b863f2911cd20e6f4e)
LICENSE IPL10
avoid pag allocation throttling when time is set back by e.g. ntpd to avoid starving everyone.
(cherry picked from commit 02dc91892c41163f24c818615d13271b074df3ca)
LICENSE MIT
Add a hidden command that can be used to test volume status handlers.
fs test_volstat.
(cherry picked from commit 068233cf4ab90a173e04de94605490e651d2f686)
LICENSE MIT
fix the reporting of volume status as a result of the VIOC_PATH_AVAIL
pioctl call. Switch on errno instead of the pioctl return value.
(cherry picked from commit 23318f425ca8ccdc9b67bfc1be0a28c0f724f52a)
LICENSE MIT
ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'
(cherry picked from commit 6034868e79f85e0143caa40669244cb8e442587b)
LICENSE MIT
when performing offline volume status checks handle CM_ERROR_NOACCESS
conditions by restoring the volume status to vl_unknown.
(cherry picked from commit ae8e701952ae029672f2d7acfaf94cd44c1e4df4)
LICENSE IPL10
make the aklog lam plugin work correctly in e.g. the CDE screenlocker, which is
part of the long-running and not-run-by-user dtsession; this means we do wackiness to
1) not pag ourselves in that case
2) setuid to the user to set uid tokens if we got a username and are root
3) do not use pr_mumble get the the AFS ID to put in the tokens, as multiple
initializations of Rx in the process space of dtsession crashes it
(cherry picked from commit 3a541eb11d1bc7bd05b85635315214218d3b5d6f)
LICENSE MIT
do not disable the signature verification of binaries when using
large cache sizes on 64-bit systems
cm_config_data values are unsigned and some are 64-bit. when logging
them use the correct data format types.
(cherry picked from commit 5baef6f6fe55ca81a28bc22023b06ee6c50d453d)
LICENSE MIT
Do not trust the registry to determine whether or not krb4 support
is available. In a roaming profile the user data can say 'yes' even
if the plug-in or the kerberos library does not exist.
(cherry picked from commit d59d1db605280bfa9b2234f5272d61152ca7d7de)
LICENSE MIT
Don't call krb524_convert_creds_kdc if it doesn't exist.
64-bit KFW doesn't support krb4 and the function isn't present.
(cherry picked from commit cfcaa0be3cc22fce97737ae4f6387a8200de770d)