chiark / gitweb /
selinux: prefer source path over fragment path
[elogind.git] / src / core / selinux-access.c
index 30eab68336b76f41c7e2b9005ecb10d26099a093..fc1df866cfe215d75b109c834c5c250ed4c9f626 100644 (file)
@@ -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);