chiark / gitweb /
smack: never follow symlinks when relabelling
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Oct 2014 16:32:22 +0000 (18:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Oct 2014 19:36:56 +0000 (21:36 +0200)
commitd1ce2089b4b2fb1f1d8faba9a0aa6d9f8fbb0638
treea09b078837d731a0808bc871ff892562f240984b
parentd53e386db62ee7f03e7d493ae0e6db7a31a5d811
smack: never follow symlinks when relabelling

previously mac_smack_apply(path, NULL) would operate on the symlink
itself while mac_smack_apply(path, "foo") would follow the symlink.
Let's clean this up an always operate on the symlink, which appears to
be the safer option.
src/shared/smack-util.c