Commit Graph

4153 Commits

Author SHA1 Message Date
Russ Allbery
bc585c90cf quickstart-pam-docs-20070507
Flesh out the PAM installation documentation for Linux and Solaris (and a
bit of reformatting in the HP-UX section).
2007-05-07 20:16:02 +00:00
Russ Allbery
1d4d8f5c4f up-preserve-dir-mtime-20070507
FIXES 34522

Set the mtime on newly created directories to match the original directory.
2007-05-07 18:17:42 +00:00
Asanka Herath
958bbb77bf windows-netidmgr-20070505
Only automatically add configuration for cell foo.com if the realm
of the cell matches the realm of the identity
2007-05-05 22:13:20 +00:00
Jeffrey Altman
c8a3a0ecf2 windows-checkvols-freelance-20070504
do not flush mount point values for freelance volume
2007-05-04 07:05:05 +00:00
Jeffrey Altman
2b442dbddb windows-wix-shell-ext-20070503
When installing on 64-bit Windows we need to install the 32-bit and 64-bit
shell extensions under different HKCR keys.  Otherwise, only one of the
explorer versions will get an extension handler.
2007-05-04 03:49:06 +00:00
Jeffrey Altman
9f508ce443 windows-wix-beta-upgrades-20070503
This change is not as important for OpenAFS as it was for KFW as
OpenAFS does not issue betas with the same build numbers as final
releases.  However, for users of daily builds when build numbers
are not being incremented it will provide benefit.

We modify the upgrade rules to include the current version number
and then block the uninstall if the currently installed package
is the one that is being installed.

The change applies to both the regular installer and the 32-bit
tools for WOW64 environments.
2007-05-04 00:12:15 +00:00
Jeffrey Altman
d9946ba827 windows-flush-mountpoints-20070502
When flushing volume location information also flush the mount point
data.  This change results in behavior that matchs the Unix client.
2007-05-03 01:44:50 +00:00
Jeffrey Altman
113ccb9963 windows-wix-html-installgd-20070426
FIXES 59827

The wix installer creates the wrong directory name for the IBM Quick Guide
Remember to specify the LongName.
2007-04-26 19:44:18 +00:00
Asanka Herath
bfed93d7fc windows-dropbox-fix-20070426
FIXES 60161

A dropbox is a directory with ACLs 'li' that permits a user to create
a new file but not be able to read other files within the same directory.

The 1.5 Windows clients have not been able to write to dropboxes since
the addition of the locking code.  The lock acquisition test assumed
that if the user did not have PRSFS_LOCK or PRSFS_WRITE that it would
be unable to obtain a lock.  It did not take into account the special
treatment of PRSFS_INSERT by the file server and so never bothered to
ask.

As it turns out though, the locking situation is more complex than one
might think.  If the server is 1.4.1 or earlier, it will not grant
any locks for users with INSERT.  The PRSFS_LOCK privilege is required.

For 1.4.2 through 1.4.4, write locks will be granted if the user has
PRSFS_INSERT but a read lock will not be granted unless the user has
PRSFS_LOCK.  Therefore, if the server advertises the WRITELOCKACL
capability bit if the read lock is not granted a write lock can be
attempted.

For 1.4.5 and 1.5.20 and above, the file server will grant read locks
if the user has PRSFS_WRITE or PRSFS_INSERT.  (Insert only applies if
the user is the creator of the file).

This patch handles all of the above possibilities.  In the pre-1.4.2
case a read-lock request will be faked locally.
2007-04-26 19:06:44 +00:00
Derrick Brashear
92ecfdd675 rx-call-abort-release-refcount-20070425
don't leak a call ref when doing a call abort
2007-04-25 20:47:13 +00:00
Derrick Brashear
5f919154cf quickstart-solaris-pam-20070423
this actually needs more fleshing out but it's at least a pointer
2007-04-24 04:48:04 +00:00
Simon Wilkinson
f521ac0f60 quickstart-obsolete-appendices-20070423
FIXES 60137

commit updates to the docs for obsolete stuff

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

also the appendix file
2007-04-24 04:37:52 +00:00
Jeffrey Altman
bb61e1dc67 viced-write-perm-grants-read-lock-20070423
the permission to obtain a write-lock is granted either by having the
"w" permission or the "i" when owning the file.  The permission to obtain
a read-lock has been granted by having the "k" permission.  However it
makes no sense that someone can obtain a write-lock but not a read-lock.
This patch grants permission to obtain read-locks to those who can obtain
write-locks.
2007-04-24 01:27:30 +00:00
Jeffrey Altman
c5c23b7bc4 windows-wix-html-installgd-20070420
FIXES 59827

The wix installer creates the wrong directory name for the IBM Quick Guide
2007-04-20 11:58:22 +00:00
Christopher Allen Wing
2d18bd1777 linux-symlink-handling-avoid-crash-20070418
Background: OpenAFS is vulnerable to crashing in the linux kernel symlink
code when running on kernel versions between 2.6.10 to 2.6.12.  This also
includes all RHEL4 kernels, because RHEL4 includes the code from 2.6.10. The
problem is that the symlink text caching API, page_follow_link() et al, is
unsuitable for network filesystems where the page cache may be invalidated
in parallel with a path lookup.

This crash can be triggered easily by doing a bunch of path lookups
involving symlinks (e.g., stat() on various files pointed to through links),
while simultaneously running 'fs flushvol' on the volume containing the
symlinks.

The simplest way to fix this problem is to disable the use of symlink text
caching when the kernel does not provide a usable symlink API.
2007-04-18 19:18:35 +00:00
Chaskiel M Grundman
9943fe1fd7 vmalloc-no-glock-20070418
Based on Chris Wing's analysis which stated in part:
GFP_NOFS tells the allocator not to recurse back into the filesystem if it's
necessary to free up memory.  However, vmalloc() does not have such an
option.  Therefore, calling osi_Alloc() to request more than a page of
memory may end up recursing back into AFS to try to free unused inodes or
dentries.

In this case, what happened was that osi_Alloc() is called within an
AFS_GLOCK(); osi_Alloc() calls vmalloc() which tries to free dentry objects,
which then calls back into the AFS module.  Unfortunately, AFS_GLOCK() is
already held and we deadlock.
2007-04-18 19:01:31 +00:00
Jeffrey Altman
85a23a70c7 windows-afskfw-bluescreen-20070418
The afskfw library contains an unprotected call to krb5_free_context
which can result in krb5_free_context being called with a NULL pointer.
MIT's Kerberos libraries do not check that the pointer is non-NULL and
will attempt to use it as a valid pointer which will in turn result
in an invalid memory access error.

This library is used by afslogon.dll which is loaded by winlogon.exe.

If the krb5 profile is invalid, the krb5_init_context call will fail
to allocate a krb5_context structure which can then result in
krb5_free_context being called with a NULL pointer.

An unhandled exception within winlogon.exe will cause a blue screen event
on Windows 2000, XP and 2003.
2007-04-18 16:57:05 +00:00
Jeffrey Altman
a82252fcc8 windows-afslogon-station-name-20070416
Use case insensitive comparisons for the station name.  Otherwise, we
will fail to notice that the logon is interactive on Vista.
2007-04-17 05:03:39 +00:00
Jeffrey Altman
c810b46e9e windows-kfw-krb5_init_context-20070416
If krb5_init_context() fails make sure that no further krb5 calls
are performed.

krb5_init_context() will fail if the krb5.ini file is damaged.
2007-04-17 01:10:28 +00:00
Jeffrey Altman
44ca92226a windows-temp-path-20070416
Use GetTempPath() instead of testing environment variables ourselves.
2007-04-17 01:04:47 +00:00
Jeffrey Altman
5bc88af797 windows-vioc-path-availability-20070414
add a new Windows only pioctl VIOC_PATH_AVAILABILITY that is used
to query the server status for a specified path.  Return values
include:
  online
  offline
  all busy
  all down
  not afs
2007-04-14 19:46:22 +00:00
Jeffrey Altman
fb5b0dcce6 windows-netidmgr-provider-20070412
do not use ellipsis for actions that do not need additional data to
complete.

"Help for OpenAFS plugin" -> "AFS" since its on the Help menu already
2007-04-12 15:12:36 +00:00
Simon Wilkinson
7de756ca28 quickstart-update-20070410
FIXES 58896

update quickstart guide with new information
2007-04-11 03:14:33 +00:00
Jeffrey Altman
5bcd5ab54d windows-netidmgr-afs-provider-20070410
when using krb524 with a cross-realm service ticket the resulting krb4
cred will not contain the user's realm as there is only one realm field.
2007-04-10 23:08:11 +00:00
Jeffrey Altman
0ff92e9a5b comerr-rename-two-20070410
fix afsrpc.def add_to_error_table
2007-04-10 23:06:02 +00:00
Jim Rees
306e23e08c doc-README-20070410
I didn't actually write this, just cribbed it from the openafs-info mailing
list.
2007-04-10 20:52:30 +00:00
Derrick Brashear
e0fa8ff72f comerr-rename-20070410
nag nag nag
2007-04-10 19:58:13 +00:00
Jeffrey Altman
fece50be72 windows-netidmgr-plugin-20070407
protect against pr_CreateUser modifying the username buffer.
2007-04-08 03:39:52 +00:00
Jeffrey Altman
a47faf3eea windows-afslogon-20070406
Fix eventlog reporting.  Do not attempt to log an event if the event
source registration fails.  Use DebugEvent0 instead of DebugEvent
when there are no parameters.

Modify the LOOKUPKEYCHAIN macro to recognize ERROR_MORE_DATA errors.

Fix the reading of Domain specific configuration for LogonScript and
TheseCells.  Previously the dwSize value was being overwritten so that
subsequent RegQueryValueEx call would fail.

Fix a memory leak in the TheseCells reading code.

Add support for Domain specific "Realm" specification.  The realm is
the realm to be appended to the username.  When logging in as a domain
or to the local machine, the specified "Domain" name is not going to be
a valid realm name.

Construct a proper principal name based upon the domain specified realm
for use in obtaining tokens with KFW.

If the domain specified "TheseCells" list includes the default cell,
do not obtain tokens twice.
2007-04-06 17:55:35 +00:00
Jeffrey Altman
bbbf3ee9ff windows-aklog-20070404
FIXES 58164

correct for the fact that pr_CreateUser tampers with the contents
of the username input buffer.
2007-04-04 21:24:48 +00:00
Peter Breitenlohner
9c592530b1 move-tasklist-lock-extern-outside-func-20070403
FIXES 53441

make tasklist-lock extern with pragma weak possibly work right
2007-04-03 19:52:44 +00:00
Jeffrey Altman
c7c7242e78 windows-vista-sdk-ntsecapi-compat-20070403
There is no way to replace FOO with the value of BAR in cpp.
2007-04-03 15:48:37 +00:00
Jeffrey Altman
644cd83dbd windows-libadmin-vos-registry-20070403
Move the session data from TransarcCorporation to OpenAFS.
2007-04-03 14:34:19 +00:00
Jeffrey Altman
125d9f877d rx-dpf-20070403
The function rx_MakeCall was at some point renamed to rx_NewCall
but the dpf output was never changed.

Add a dpf entry for rxi_ResetCall.
2007-04-03 14:30:25 +00:00
Jeffrey Altman
fbcafac2f6 windows-vista-sdk-ntsecapi-compat-20070402
fix inclusion of ntsecapi.h in network identity manager plug-in
2007-04-03 06:40:27 +00:00
Jeffrey Altman
26b381dc17 windows-afslogon-20070402
restore token acquisition for non-interactive logons.
2007-04-03 05:32:03 +00:00
Jeffrey Altman
20890b4e2e windows-nim-plugin-20070331
correct a NULL pointer de-reference introduced in
windows-nim-plugin-20070328
2007-03-31 13:52:17 +00:00
Jeffrey Altman
934f76fb18 windows-afslogon-20070328
There are two serious problems with integrated logon:

(1) openafs afslogon.dll obtains Kerberos v5 tickets and then forwards them
    into the logon session.  This was done because MIT KFW did not have
    such functionality.   As of KFW 3.1, KFW does, so we are removing it.

    the functionality worked by copying the credentials to a FILE ccache
    and then using the Logon Event Handler to move the credentials into
    an API ccache and delete the temporary file.  For non-interactive
    logons the Logon Event handlers do not get triggered.  Neither do
    LogonScripts get executed.  As a side effect, for each logon a
    credential cache file was left behind.

(2) when combined with non-interactive logons, there are some very bad
    side effects if a network provider performs Kerberos v5 operations.
    Each logon occurs in a new logon session and will spawn a private
    copy of krbcc32s.exe.

    As a result, integrated logon is being disabled for non-interactive
    logons.
2007-03-28 23:29:49 +00:00
Jeffrey Altman
60e5fc151e windows-nim-plugin-20070328
if the service ticket in the cache is expired, delete it from the cache
2007-03-28 23:18:41 +00:00
Neale Ferguson
74e22e2190 s390x-syscall-patch-fix-20070326
make s390x syscall table patching work correctly
2007-03-27 04:21:09 +00:00
Jeffrey Altman
a6cb25c5d3 windows-vista-sdk-ntsecapi-compat-20070324
When loading the Vista SDK ntsecapi.h we must set _WIN32_WINNT
to 0x0501 or greater
2007-03-24 05:02:16 +00:00
Jeffrey Altman
48cd8daff8 windows-fs-whereis-freelance-20070324
do not assert on the lack of a cell when calling fs whereis on the
freelance volume.  return CM_ERROR_NOCELL instead.
2007-03-24 04:59:13 +00:00
Derrick Brashear
1c9ede0bcf tvolser-locking-updates-20070322
rework locking in tvolser slightly to avoid potential transaction leak
2007-03-22 15:58:45 +00:00
Chas Williams
c2fb9440f3 darwin-remunlink-20070320
FIXES 55280

make reumlink work the way it's supposed to
2007-03-20 19:29:41 +00:00
Douglas Engert
ff81d7e77a nfs-gc-fix-20070320
FIXES 56459

avoid issue with nfs gc handler and mismatched types
2007-03-20 19:20:24 +00:00
Robert Banz
af0a976f11 namei-allow-zfs-20070320
don't force AlwaysAttach on ZFS in namei
2007-03-20 18:59:22 +00:00
Chaskiel M Grundman
29951ff73c linux-task-pointer-safety-20070320
hold applicable locks while futzing with task list
2007-03-20 18:45:58 +00:00
Chaskiel M Grundman
97d8703809 keyring-pag-finduser-requires-glock-20070320
identical to the fix from chas@cmf.nrl.navy.mil
2007-03-20 18:41:02 +00:00
Derrick Brashear
c4183dbc1f no-default-setuid-20070319
FIXES 54713

disable default setuid for localcell
2007-03-20 01:13:06 +00:00
Jeffrey Altman
b4f323eaeb windows-var-renaming-20070319
give rx call variables a distinct name from cm call variables
in order to avoid confusion
2007-03-19 13:44:41 +00:00