[Bug 1353734] Re: Permission denied when creating semaphore in ubuntu-cloud container

Serge Hallyn 1353734 at bugs.launchpad.net
Thu Aug 7 03:13:35 UTC 2014


Thanks for submitting this bug.  The problem is due to /run/shm not
existing in the cloud images.

The ubuntu-cloud image fixes the /dev/shm by doing:

    if [ ! -L $rootfs/dev/shm ] && [ -d $rootfs/run/shm ] && [ -e $rootfs/dev/shm ]; then
        mv $rootfs/dev/shm $rootfs/dev/shm.bak
        ln -s /run/shm $rootfs/dev/shm
    fi

The second test fails because $rootfs/run/shm does not exist.

Since /run/shm will be created at runtime, I see no reason not to drop the second part
of the test.  I'll suggest that to the list - there may be reasons I'm not considering.


** Summary changed:

- Permission denied when creating semaphore in container
+ Permission denied when creating semaphore in ubuntu-cloud container

** Changed in: lxc (Ubuntu)
   Importance: Undecided => High

** Changed in: lxc (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1353734

Title:
  Permission denied when creating semaphore in ubuntu-cloud container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1353734/+subscriptions



More information about the Ubuntu-server-bugs mailing list