Control: reassign 754458 fakeroot Control: retitle 754458 debootstrap --variant=fakechroot as non-priv user fails to create proper ownership for /var/cache/man Control: affects 754458 debirf
On Tue 2014-07-15 08:32:49 -0400, jhcha54008 wrote:
> Real and effective uid and real and effective gid are set to man,
> and mandb is run with option -cq to create subdirectories, -pq to
> update them. mandb creates files of uid 'man' and gid 'root' because
> of the sgid bit of /var/cache/man. These files are created as GNU dbm
> files through gdbm_open, which calls 'open'.
>
> Now in a fakeroot environment, the files are owned by root. Is this related
> to the fact that "fakeroot doesn't wrap open(), create(), etc."
> (according to fakeroot(1)) ?
yep, that seems to be an accurate trace of the problem; the problem is
in debootstrap --variant=fakechroot, due to fakeroot declining to wrap
open() and creat(), as documented in fakeroot(1). So the question
becomes: should we try to work around this problem for /var/cache/man in
debirf? If so, what other places will we need to workaround?
I wonder if fakeroot would be willing to provide an optional wrapper for
open() and creat(). This seems like a pattern worth supporting.
--dkg
pgpARgKC5lGHk.pgp
Description: PGP signature

