From c61ada9bd3d29734cce244a5cd39ec2cc5882454 Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Tue, 16 Sep 2003 00:45:50 +0000 Subject: 2003-09-15 Pierre Humblet * security.h (__sec_user): Add "access2" argument. (sec_acl): Add "original" and "access2" arguments. (sec_user): Add "sid2" and "access2" argument. Remove dependence on allow_ntsec. (sec_user_nih): Ditto. * sec_helper.cc (__sec_user): Add "has_security" test. Call sec_acl with new arguments, letting it handle original_sid. (sec_acl): Add "original" and "access2" arguments. Handle original_sid depending on flag but avoiding duplicates. Use "access2" for sid2. * pinfo.cc (pinfo::init): Use security attributes created by sec_user when creating the mapping. * security.cc (create_token): Adjust arguments in call to sec_acl. Call sec_user instead of __sec_user. * syscall.cc (seteuid32): Adjust arguments in call to sec_acl. Remove now unnecessary test. Remove useless conversions to psid. * dcrt0.cc (dll_crt0_1): Call cygsid::init before pinfo_init. --- winsup/cygwin/dcrt0.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 51cc55f25..c907399bf 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -678,6 +678,9 @@ dll_crt0_1 () } #endif + /* Init global well known SID objects */ + cygsid::init (); + /* Initialize our process table entry. */ pinfo_init (envp, envc); @@ -687,9 +690,6 @@ dll_crt0_1 () /* Allocate cygheap->fdtab */ dtable_init (); - /* Init global well known SID objects */ - cygsid::init (); - /* Initialize user info. */ uinfo_init (); -- cgit v1.2.3