Bug 193889 - .miCASA files are RW for user only
This commit is contained in:
parent
69f772ed91
commit
4872424328
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 1 10:18:48 MST 2007 - jnorman@novell.com
|
||||||
|
|
||||||
|
- Bug 193889. .miCASA files are RW for user only
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 31 15:48:56 MST 2007 - schoi@novell.com
|
Wed Jan 31 15:48:56 MST 2007 - schoi@novell.com
|
||||||
|
|
||||||
|
7
CASA/micasad/cache/SecretStore.cs
vendored
7
CASA/micasad/cache/SecretStore.cs
vendored
@ -90,6 +90,13 @@ namespace sscs.cache
|
|||||||
|
|
||||||
internal SecretStore(User ssUser)
|
internal SecretStore(User ssUser)
|
||||||
{
|
{
|
||||||
|
#if LINUX
|
||||||
|
Mono.Unix.Native.Syscall.umask(Mono.Unix.Native.FilePermissions.S_IRGRP |
|
||||||
|
Mono.Unix.Native.FilePermissions.S_IWGRP |
|
||||||
|
Mono.Unix.Native.FilePermissions.S_IROTH |
|
||||||
|
Mono.Unix.Native.FilePermissions.S_IWOTH);
|
||||||
|
#endif
|
||||||
|
|
||||||
secretStoreName = ssUser.GetUserName();
|
secretStoreName = ssUser.GetUserName();
|
||||||
version = 1;
|
version = 1;
|
||||||
state = STATE_NOT_DEFINED;
|
state = STATE_NOT_DEFINED;
|
||||||
|
@ -169,6 +169,13 @@ public class ICASAPol
|
|||||||
fs.Close();
|
fs.Close();
|
||||||
writer.Close();
|
writer.Close();
|
||||||
*/
|
*/
|
||||||
|
#if LINUX
|
||||||
|
Mono.Unix.Native.Syscall.umask(Mono.Unix.Native.FilePermissions.S_IRGRP |
|
||||||
|
Mono.Unix.Native.FilePermission.S_IWGRP |
|
||||||
|
Mono.Unix.Native.FilePermission.S_IROTH |
|
||||||
|
Mono.Unix.Native.FilePermission.S_IWOTH);
|
||||||
|
#endif
|
||||||
|
|
||||||
XmlTextWriter writer = new XmlTextWriter(GetPolicyFilePath(),null);
|
XmlTextWriter writer = new XmlTextWriter(GetPolicyFilePath(),null);
|
||||||
writer.Formatting = Formatting.Indented;
|
writer.Formatting = Formatting.Indented;
|
||||||
doc.Save(writer);
|
doc.Save(writer);
|
||||||
|
Loading…
Reference in New Issue
Block a user