[systemd-devel] [PATCH] sysusers: Preserve label of /etc/{passwd, group}
Miroslav Grepl
mgrepl at redhat.com
Mon Jul 21 01:26:20 PDT 2014
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, fixed.
>
>> Why cannot the same code as in write_string_file_atomic_label be used
>> instead?
> We're writing more than one line, and in addition we need to look up the
> label for /etc/passwd even if we're operating on a chroot.
>
>> BTW, you're returning -1 here, but should be -errno.
> This code is gone now; new patch attached.
>
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Colin,
how does look
# ls -Z /etc/passwd* /etc/group*
with this patch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140721/0d3c2b75/attachment.html>
More information about the systemd-devel
mailing list