SOlaris and mlock()

Guenther Deschner gd at
Wed Feb 21 12:03:15 GMT 2007

Hi Jerry,

On Wednesday 21 February 2007 12:25, Gerald (Jerry) Carter wrote:
> Jeremy & Guenther,
> Looks like this is still an issue.  Have either of you
> tested the mlock() usage on non-Linux platforms? (e.g.
> Solaris).  Doesn't the memory need to page aligned or
> something?

Yes, my fault, I'm aware of that but never got around to test with Solaris. It 
need to be aligned.
From man mlock on Linux:

"Under Linux, mlock() and munlock() automatically round addr down to the 
nearest page boundary.  However, POSIX.1-2001 allows an implementation to 
require that addr is page aligned, so portable applications should ensure 

>  failed to mlock memory: Invalid argument (22)
>  Failed to store memory creds: NT_STATUS_INVALID_HANDLE
>  Plain-text authentication for user AD\smitty returned
> Also, why is this showing up at all with the krb5 tkt
> refresh and offline support disabled in the smb.conf
> file?

Were are storing in-memory creds for firefox NTLM SSO (ntlm_auth) independent 
from "winbind offline logon" when the pam_auth caller requests 
WBFLAG_PAM_CACHED_LOGIN. Conceptually that is ok but for consistency we 
should tie this again to the global offline logon setting.

On my list for 3.0.25.


Günther Deschner                    GPG-ID: 8EE11688
Novell / SUSE Labs                        gd at
Samba Team                              gd at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list