loaddllfunc in autoload.cc

2003-07-16 Thread Vishal Jain
How does one figure out the number for example 4 in LoadDLLfunc (GetLengthSid, 4, advapi32) in autoload.cc I want to add couple of functions AllocateAndInitializeSid FreeSid thanks, Vishal _ Tired of spam? Get advanced junk mail prote

tools to detect memory leaks

2003-06-24 Thread Vishal Jain
Are there any tools that can one use to detect memory leaks in programs compiled and run on cygwin? thanks, Vishal _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- Uns

Getting domain name

2003-04-03 Thread Vishal Jain
Is there a function in cygwin to get the domain of a user in whose security context the application is running? thanks, Vishal _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?

setuid(0)

2003-04-03 Thread Vishal Jain
If I am running my application as user A. Then I impersonate as other users. Will seteuid(0) revert to security context of user A? Thanks, Vishal _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?pa

Export a new function from cygwin1.dll

2003-04-02 Thread Vishal Jain
If I define a new function in cygwin and want to export it, what do I need to do? thanks, Vishal _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- Unsubscribe info: http

Meaning of setegid() call in cygwin

2003-03-27 Thread Vishal Jain
Hi, setegid() changes the primary group information in the access token. How does it impact access control on windows? I guess my question really boils down to- How is primary group used by windows in access control? user sid and sids of groups of which user is member is used to determine if user

Re: /etc/passwd dependency of cygwin

2003-03-21 Thread Vishal Jain
s I have my own implementation of seteuid). If there is a way to disable nt security in cygwin on win2k then this might work as security descriptor won't be created in that case. Vishal On Tue, 18 Mar 2003, Vishal Jain wrote: Hi, How does cygwin library depend on uid's and gid's in

Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
make CFLAGS_FOR_TARGET=-g CFLAGS=-g worked for me. Although files under newlib are still compiled with O2 flag. thanks, Vishal On Fri, Mar 21, 2003 at 10:20:35PM +0100, Corinna Vinschen wrote: On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: Hi, Just typing make CFLAGS=-g does not

How to disable winnt security in cygwin on winnt/win2k

2003-03-21 Thread Vishal Jain
Hi, Is there a way to turn off winnt security in cygwin on win2k m/c without changing cygwin sources? thanks, Vishal _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- U

Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
This also does not help. Vishal On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. Removing -O2 from the top level makefile also does not help. Vishal make CFLAGS_FOR_TARGET=-g Corinna

Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. Removing -O2 from the top level makefile also does not help. Vishal On Thu, Mar 20, 2003 at 09:15:36PM -0800, Vishal Jain wrote: Is there a single place in a config file where I can specify CFLAGS? Where do I have to change it? Just

Re: DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, Is there a single place in a config file where I can specify CFLAGS? Where do I have to change it? thanks, Vishal On Thu, Mar 20, 2003 at 06:25:45PM -0800, Vishal Jain wrote: When I try to set the breakpoint to seteuid() or fopen, and run the program, it does not stop at that function. Try

Re: DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, But I am unable to step into cygwin code. When I try to set the breakpoint to seteuid() or fopen, and run the program, it does not stop at that function. It is kind of working partially. I can set a breakpoint and step into cygwin_logon_user but it won't let me "step" into cygwin_set_impers

DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, How do you make a "debug" build of cygwin so that I could debug it through gdb? thanks, Vishal _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- Unsubscribe info:

Re: seteuid and file ownership

2003-03-20 Thread Vishal Jain
Subject: Re: seteuid and file ownership You might start by checking the status after the setuid call. Perhaps it failed. Vishal Jain wrote: Hi, I am making a seteuid() call to impersonate user "shweta". Then I create a file. When I do ls -l on the file, it shows the owner as "vishalj&q

seteuid and file ownership

2003-03-20 Thread Vishal Jain
Hi, I am making a seteuid() call to impersonate user "shweta". Then I create a file. When I do ls -l on the file, it shows the owner as "vishalj" which was the user before doing impersonation. -rw-rw-rw-1 vishalj mkgroup 0 Mar 20 12:50 shweta Is this expected behaviour in cygwin? I am

/etc/passwd dependency of cygwin

2003-03-18 Thread Vishal Jain
Hi, How does cygwin library depend on uid's and gid's in /etc/passwd? If I replace it with my custom /etc/passwd file and replace cygwin's seteuid/geteuid calls with custom implementation, will my application work? How does cygwin internally uses uid's and gid's? thanks, Vishal __

Segmentation fault in NetUserGetInfo call

2003-03-13 Thread Vishal Jain
Hi, I am using gcc to compile my code. I am linking to windows netapi32 library. This is the error I am getting when NetUserGetInfo call is executed Program received signal SIGSEGV, Segmentation fault. 0x77d7bf5c in RPCRT4!NdrCorrelationFree () from /cygdrive/c/WINNT/system32/rpcrt4.dll The code