Revert PeerCred back to Mono.Posix namespace

This commit is contained in:
Jim Norman 2006-01-12 03:57:58 +00:00
parent 981c2f6ea4
commit a603dadba3
4 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 11 21:50:59 MST 2006 - jnorman@novell.com
- Revert Mono.Unix.PeerCred back to Mono.Posix.PeerCred to run
on MONO 1.1.13
-------------------------------------------------------------------
Wed Jan 11 20:31:12 IST 2006 - smanojna@novell.com

View File

@ -34,7 +34,8 @@ namespace sscs.common
override internal string GetUserHomeDir()
{
uint uid = (uint)userId.GetUID();
return Mono.Unix.UnixUser.GetHomeDirectory(uid);
Mono.Unix.UnixUserInfo uui = new Mono.Unix.UnixUserInfo(uid);
return uui.HomeDirectory;
}

View File

@ -24,7 +24,9 @@ class UnixIPCChannel : IPCChannel
{
CSSSLogger.ExecutionTrace(this);
clientSocket = connectedSocket;
PeerCred cred = new PeerCred(connectedSocket);
Mono.Posix.PeerCred cred;
cred = new Mono.Posix.PeerCred(connectedSocket);
userId = new UnixUserIdentifier(cred.UserID);
}

View File

@ -47,7 +47,7 @@ namespace sscs.crypto
//Encrypt the data to a file
fsEncrypt = new FileStream(fileName, FileMode.Create);
#if LINUX
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
#endif
// make hidden
File.SetAttributes(fileName, FileAttributes.Hidden);
@ -154,7 +154,7 @@ namespace sscs.crypto
//Encrypt the data to a file
fsEncrypt = new FileStream(fileName, FileMode.Create);
#if LINUX
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
#endif
// make hidden
File.SetAttributes(fileName, FileAttributes.Hidden);
@ -361,7 +361,7 @@ namespace sscs.crypto
//Encrypt the data to a file
fsEncrypt = new FileStream(fileName,FileMode.Create);
#if LINUX
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
#endif
// make hidden
File.SetAttributes(fileName, FileAttributes.Hidden);