Re: [systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-21 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jul 21, 2014 at 10:26:20AM +0200, Miroslav Grepl wrote: > On 07/13/2014 10:35 PM, Colin Walters wrote: > >On Sat, Jul 12, 2014, at 06:48 AM, Zbigniew Jędrzejewski-Szmek wrote: > >>please excuse my possibly ignorant questions, selinux is not my forte. > >>If the files are nonexistent, will t

Re: [systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-21 Thread Miroslav Grepl
On 07/13/2014 10:35 PM, Colin Walters wrote: On Sat, Jul 12, 2014, at 06:48 AM, Zbigniew Jędrzejewski-Szmek wrote: please excuse my possibly ignorant questions, selinux is not my forte. If the files are nonexistent, will this fail? But sysusers should be able to create /etc from scratch. True,

Re: [systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-13 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jul 13, 2014 at 01:35:33PM -0700, Colin Walters wrote: > From b1113ed91ebdcf7ac2546a2618fe83751edfbaa0 Mon Sep 17 00:00:00 2001 > From: Colin Walters > Date: Fri, 11 Jul 2014 15:03:29 -0400 > Subject: [PATCH] sysusers: Ensure /etc/{passwd,group} are labeled correctly > > These files are s

Re: [systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-13 Thread Colin Walters
On Sat, Jul 12, 2014, at 06:48 AM, Zbigniew Jędrzejewski-Szmek wrote: > > please excuse my possibly ignorant questions, selinux is not my forte. > If the files are nonexistent, will this fail? But sysusers should be > able to create /etc from scratch. True, fixed. > Why cannot the same code as i

Re: [systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-12 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jul 11, 2014 at 02:23:43PM -0700, Colin Walters wrote: > These files are specially labeled on SELinux systems, and we need to > preserve that label. > --- > src/shared/label.c | 25 + > src/shared/label.h | 1 + > src/sysusers/sysusers.c | 11 ++-

[systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}

2014-07-11 Thread Colin Walters
These files are specially labeled on SELinux systems, and we need to preserve that label. --- src/shared/label.c | 25 + src/shared/label.h | 1 + src/sysusers/sysusers.c | 11 ++- 3 files changed, 36 insertions(+), 1 deletion(-) From 715e1ff352601d841fc