Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Sun, Jun 26, 2011 at 09:59:14PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On 06/24/2011 02:39 PM, Michal Vyskocil wrote: +int isdigits(const char* str) { +size_t i; + +if (!str) +return 0; + +for (i = 0; i != strlen(str); i++) { +

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: On Fri, 24.06.11 14:39, Michal Vyskocil (mvysko...@suse.cz) wrote: Add -u/--user option, which changes the effective and real user and group id to the new value. The user must exists in the chroot, otherwise it will fail.

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Ludwig Nussel
Lennart Poettering wrote: On Mon, 27.06.11 14:50, Michal Vyskocil (mvysko...@suse.cz) wrote: On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: On Fri, 24.06.11 14:39, Michal Vyskocil (mvysko...@suse.cz) wrote: Add -u/--user option, which changes the effective and

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Lennart Poettering
On Mon, 27.06.11 17:32, Ludwig Nussel (ludwig.nus...@suse.de) wrote: Lennart Poettering wrote: On Mon, 27.06.11 14:50, Michal Vyskocil (mvysko...@suse.cz) wrote: On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: On Fri, 24.06.11 14:39, Michal Vyskocil

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-26 Thread Zbigniew Jędrzejewski-Szmek
On 06/24/2011 02:39 PM, Michal Vyskocil wrote: +int isdigits(const char* str) { +size_t i; + +if (!str) +return 0; + +for (i = 0; i != strlen(str); i++) { +if (!isdigit(str[i])) +return 0; +}