On Sat, May 26, 2012 at 03:10:02PM +0200, Bruno Haible wrote:
>   1) Scan the source code and add, after every file creation via
>      open() or fopen() or shell redirections etc. a
>      "chgrp $g $file && chown g+w $file" action.

> The first approach is not realizable if the program is large or not free.
> Whereas with the second approach there is the problem that setgid()
> and setregid() are not allowed to normal users, *even* if they are
> members of the target group.

As long as that program doesn't use syscalls directly and uses the libc 
instead, you should be able to shim in a custom open() using LD_PRELOAD or so, 
right?

Attachment: pgp349QOYfOWt.pgp
Description: PGP signature

Reply via email to