]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
utmp: do not set conf->need_utmp_watch if CAP_SYS_BOOT is not found
authorDavid Ward <david.ward@ll.mit.edu>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
commitf51db2b39a5006ed74271ffd0b46cbbc27d7bf0b
tree03b629c7e68164dbbbe695ffef3e820f0e80538c
parent631c07d49cb666f46990d83210d5ac916a700f21
utmp: do not set conf->need_utmp_watch if CAP_SYS_BOOT is not found

If CAP_SYS_BOOT is not found in the kernel, the existing value for
conf->need_utmp_watch should be left intact (which will be '1' for
containers started with 'lxc-start', or '0' for containers started
with 'lxc-execute').

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/start.c