[buildd-tools-devel] Bug#608840: Bug#608840: --chroot-setup-commands does not run as root
Roger Leigh
rleigh at codelibre.net
Mon Jan 3 22:21:14 UTC 2011
forcemerge 608840 607228
thanks
On Mon, Jan 03, 2011 at 02:04:27PM -0800, Kees Cook wrote:
> With the deprecation of --setup-hook in favor of --chroot-setup-commands,
> it seems that the root uid was dropped when executing. Now I am just my
> regular user, and cannot do the work I need to do with this hook (i.e. I
> cannot modify the apt sources.list etc).
I think this is probably the same issue as #607228.
I haven't yet seen why it's not running as root though. Ah, looks
like in Sbuild::Build::run_command (called from run_external_commands)
we only run as root /outside/ the chroot.
I'd just like to check with Andres what the intention is here.
Should chroot-(setup|cleanup)-commands be run as root? Should we
provide an alternative set of hooks so that one set runs as root,
one as the user (with --setup-hook running as root)?
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110103/6a1879b8/attachment-0001.pgp>
More information about the Buildd-tools-devel
mailing list