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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Colin,
how does look

# ls -Z /etc/passwd* /etc/group*

with this patch?
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to