summaryrefslogtreecommitdiff
path: root/src/shared/label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-10 22:48:56 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-10 22:48:56 +0200
commit874f1947e33922f08c578696af5b628a0f67fec2 (patch)
tree9ce50f3d1106be80214fe4bce3199da1ebf0fbf7 /src/shared/label.c
parent62be1c9aab241b5eeabe1503a75ff5779bfb6d5b (diff)
label: when clearing selinux context, don't mangle errno
Diffstat (limited to 'src/shared/label.c')
-rw-r--r--src/shared/label.c4
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;