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.w...@ll.mit.edu> --- src/lxc/start.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index fc2a1b1..1ee7bdf 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -508,7 +508,6 @@ static int do_start(void *data) SYSERROR("failed to remove CAP_SYS_BOOT capability"); return -1; } - handler->conf->need_utmp_watch = 1; DEBUG("Dropped cap_sys_boot\n"); } else { DEBUG("Not dropping cap_sys_boot or watching utmp\n"); -- 1.7.1 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel