chiark / gitweb /
Fix permissions on /run/systemd/nspawn/locks
authorSeth Jennings <sjenning@redhat.com>
Tue, 5 May 2015 18:31:01 +0000 (13:31 -0500)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:21:10 +0000 (08:21 +0100)
commit717ddd6380440be725ce97fd8b0d8eaa0dba5f25
tree06b8ff6b931a3dfe0e6cfe2ad933596600c5ba49
parent7dc61c4539d8d96c7e858ab22b433194afbc5a0e
Fix permissions on /run/systemd/nspawn/locks

machined is getting an EACCES when trying to create the lock file for
images because the mode on /run/systemd/nspawn/locks is 0600.

mkdir("/run/systemd/nspawn/locks", 0600) = -1 EEXIST (File exists)
stat("/run/systemd/nspawn/locks", {st_mode=S_IFDIR|0600, st_size=40, ...}) = 0
open("/run/systemd/nspawn/locks/inode-41:256", O_RDWR|O_CREAT|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC, 0600) = -1 EACCES (Permission denied)

This commit adjusts the mode to 0700 to correct the issue.
src/shared/machine-image.c