← Back to team overview

ubuntu-phone team mailing list archive

Re: Setting up and running a Debian chroot on Ubuntu Touch

 

Hi

On Sun 01-Feb-2015 at 12:04:48PM +0000, Chris Croome wrote:
> 
> So I have made a start at getting a Debian chroot running, using
> debbootstrap, I did the initial install on devel and then switch to RTM,
> but now I'm stuck, I can't seem to mount the chroot with exec
> permissions:
> 
>   mount -o remount,exec,dev,rw,relatime /home/debian.img /home/debian
>   chroot /home/debian /bin/bash
>     chroot: failed to run command '/bin/bash': Permission denied
>   mount | grep debian.img
>     /home/debian.img on /home/debian type ext4 (rw,relatime,data=ordered)

The issues appear to be that AppArmor is not allowing the chroot
partition to be mounted with exec perms, this is from /var/log/dmesg:

  [  118.000274] type=1400 audit(1422727205.303:67): apparmor="DENIED" operation="exec" profile="com.ubuntu.developer.flscogna.terminalreboot_terminal_0.8.027" name="/home/debian/bin/bash" pid=3361 comm="chroot" requested_mask="x" denied_mask="x" fsuid=0 ouid=0

I'm not clear how to proceed here, do I need to change the AppArmor
profile for terminalreboot or should I be looking at creating a new
AppArmor profile for the chroot?

All the best

Chris

-- 
Webarchitects Co-operative
http://webarchitects.coop/
+44 114 276 9709
@webarchcoop


References