yellow team mailing list archive
-
yellow team
-
Mailing list archive
-
Message #00586
[Merge] lp:~frankban/launchpad/setuplxc-944386 into lp:launchpad
Francesco Banconi has proposed merging lp:~frankban/launchpad/setuplxc-944386 into lp:launchpad.
Requested reviews:
Launchpad Yellow Squad (yellow)
For more details, see:
https://code.launchpad.net/~frankban/launchpad/setuplxc-944386/+merge/97171
== Changes ==
setuplxc: Added workaround to disable hardlink protection (see bug 944386).
--
https://code.launchpad.net/~frankban/launchpad/setuplxc-944386/+merge/97171
Your team Launchpad Yellow Squad is requested to review the proposed merge of lp:~frankban/launchpad/setuplxc-944386 into lp:launchpad.
=== modified file 'utilities/setuplxc.py'
--- utilities/setuplxc.py 2012-03-12 21:25:46 +0000
+++ utilities/setuplxc.py 2012-03-13 10:03:20 +0000
@@ -819,6 +819,12 @@
sudoers.write(' /usr/local/bin/launchpad-lxc-test\n')
# The sudoers must have this mode or it will be ignored.
os.chmod(sudoers_file, 0440)
+ # XXX 2012-03-13 frankban bug=944386:
+ # Disable hardlink restriction. This workaround needs
+ # to be removed once the kernel bug is resolved.
+ procfile = '/proc/sys/kernel/yama/protected_nonaccess_hardlinks'
+ with open(procfile, 'w') as f:
+ f.write('0\n')
def create_lxc(user, lxcname, ssh_key_path):