[Android-tools-devel] Bug#770330: ideas from #debian-devel

Hans-Christoph Steiner hans at eds.org
Tue Nov 25 11:49:57 UTC 2014


The package android-permissions integrates the Android permissions into a
Debian chroot running on Android.  Android permissions are implemented in
Android's Linux kernel using UIDs and GIDs.  Therefore, this package should
only ever run on a Debian chroot running with an Android kernel.  It adds all
of the hard-coded users and groups to Debian.  It should also modify things
like GID_MAX or LAST_GID in /etc/login.defs and /etc/adduser.conf to reflect
the hard-coded Android UIDs and GIDs.

One idea for a solution was to make a debootstrap variant, but I'm not sure
that cdebootstrap
supports that. The idea is rather than having the package do these changes
directly, it provides a script that does the changes to a specified root
directory.  Then this script is run as part of the variant.

Another idea is to create /etc/login.defs.d and /etc/adduser.conf.d so that
packages can add definitions there.  I'm not sure yet whether either approach
is good.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/android-tools-devel/attachments/20141125/bf4f1385/attachment.sig>


More information about the Android-tools-devel mailing list