]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setpriv: Fix --selinux-label
authorAndy Lutomirski <luto@amacapital.net>
Thu, 1 May 2014 05:10:13 +0000 (22:10 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 6 May 2014 09:27:52 +0000 (11:27 +0200)
commitcc89383b3207f14671ad4266bb945347d5c1b609
tree6d6da9b1525cf43023ffe5ffecdb40dda199c5bc
parentaa06617f6ef8dceff939bdd233fa7df382344ecf
setpriv: Fix --selinux-label

This commit:

    commit 05cef8eafbf169a8da1d2831f5ed3d5b1b81aaad
    Author: Sami Kerola <kerolasa@iki.fi>
    Date:   Sat Apr 13 20:54:59 2013 +0100

        setpriv: check writing to a file descriptor was successful

broke --selinux-label.  It checks whether fsyncing /proc/self/attr/exec
succeeds, and it doesn't, because fsync isn't supported on that file.

I have stealthily improved the error message as part of this fix.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
sys-utils/setpriv.c