summaryrefslogtreecommitdiff
path: root/src/core/selinux-access.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-18 01:55:24 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-18 01:55:24 +0200
commitaba15a0391a04d5444319a609737c6b05f71e7c9 (patch)
treec8e4dacab8d113ed958de6220c4a10f0c150683c /src/core/selinux-access.c
parent901c3d0d85628e6a4708bc9748766029cf5c7f97 (diff)
selinux: prefer source path over fragment path
Diffstat (limited to 'src/core/selinux-access.c')
-rw-r--r--src/core/selinux-access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/selinux-access.c b/src/core/selinux-access.c
index 30eab68336..fc1df866cf 100644
--- a/src/core/selinux-access.c
+++ b/src/core/selinux-access.c
@@ -684,7 +684,7 @@ int selinux_manager_access_check(DBusConnection *connection, DBusMessage *messag
}
}
- path = (u->fragment_path ? u->fragment_path: u->source_path);
+ path = u->source_path ? u->source_path : u->fragment_path;
}
r = selinux_access_check(connection, message, m, error, perm, path);