Re[2]: ucred when euid/egid

2009-11-29 Thread Anthony Pankov
Thank you for reply. So, seteuid/gid isn't enough to gain group access as for real uid. But how i can achieve this? What functions should i call from 'theprog' to gain access for the groups euid user belongs to? May be i solve the problem in wrong way? The full problem is: There is a file owne

[patch] Improved jail fstab functionality inside rc.d (needs testers and review)

2009-11-29 Thread Merijn Verstraaten
My apologies if these are the wrong lists for this sort of thing but it was unclear to me where else to go with additions like this. I just finished hacking /etc/rc.d/jail to fix my two pet peeves, currently the rc framework only accepts a single fstab file per jail and (worse!) there is no

Re: heap limits: mmap(2) vs. break(2) on i386

2009-11-29 Thread Ulrich Spörlein
On Fri, 27.11.2009 at 18:22:38 -0800, Maxim Sobolev wrote: > Crazy idea, perhaps, but has anyone considered wrapping up sbrk(2) into > mmap(2), so that there is only one memory pool to draw from? Switch to > 64-bit certainly helps, however there are lot of 32-bit machines hanging > around and we

Re: [patch] Improved jail fstab functionality inside rc.d (needs testers and review)

2009-11-29 Thread Bjoern A. Zeeb
On Sun, 29 Nov 2009, Merijn Verstraaten wrote: My apologies if these are the wrong lists for this sort of thing but it was unclear to me where else to go with additions like this. You may try freebsd-jail@ Make sure to get a review from simon@ for this. /bz -- Bjoern A. Zeeb It will

definitive way to set uname in jail?

2009-11-29 Thread xorquewasp
It seems that the only way to set the output of uname in a jail is to define environment variables. Unfortunately, there doesn't seem to be a reliable way to unconditionally set them (a process might do the equivalent of 'env -i /bin/sh' and unset them, etc). Apart from just patching the uname ut

Re: ucred when euid/egid

2009-11-29 Thread Clifton Royston
On Sun, Nov 29, 2009 at 01:19:02PM +0300, Anthony Pankov wrote: > > Thank you for reply. > > So, seteuid/gid isn't enough to gain group access as for real uid. > But how i can achieve this? What functions should i call from > 'theprog' to gain access for the groups euid user belongs to? > > May

Re: ucred when euid/egid

2009-11-29 Thread Nate Eldredge
On Sun, 29 Nov 2009, Clifton Royston wrote: On Sun, Nov 29, 2009 at 01:19:02PM +0300, Anthony Pankov wrote: Thank you for reply. So, seteuid/gid isn't enough to gain group access as for real uid. But how i can achieve this? What functions should i call from 'theprog' to gain access for the gr