diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-10 22:48:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-10 22:48:56 +0200 |
commit | 874f1947e33922f08c578696af5b628a0f67fec2 (patch) | |
tree | 9ce50f3d1106be80214fe4bce3199da1ebf0fbf7 /src/shared | |
parent | 62be1c9aab241b5eeabe1503a75ff5779bfb6d5b (diff) |
label: when clearing selinux context, don't mangle errno
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/label.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/label.c b/src/shared/label.c index e46d53201d..25a8b361b7 100644 --- a/src/shared/label.c +++ b/src/shared/label.c @@ -293,6 +293,8 @@ int label_socket_set(const char *label) { void label_context_clear(void) { #ifdef HAVE_SELINUX + PROTECT_ERRNO; + if (!use_selinux()) return; @@ -303,6 +305,8 @@ void label_context_clear(void) { void label_socket_clear(void) { #ifdef HAVE_SELINUX + PROTECT_ERRNO; + if (!use_selinux()) return; |