[Lxc-users] Permission denied on lxc-console login

Milan Zamazal pdm at zamazal.org
Mon Mar 7 09:18:07 UTC 2011


>>>>> "DL" == Daniel Lezcano <daniel.lezcano at free.fr> writes:

    DL> Sorry for the dumb question but are you sure the 'setpriority'
    DL> call is done when the login succeed ?

Yes.  To be very sure, I tried the following program:

  #include <sys/resource.h>

  int main(void)
  {
    return setpriority(PRIO_PROCESS, 0, 0);
  }

When run as root, it returns -1 in a "bad" container and 0 in a "good"
container.

So the problem is completely isolated now.  The question is why some
containers are "good" and other ones are "bad" (note that even the same
container may turn into the other state after restart).






More information about the lxc-users mailing list