mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
selinux: prefer source path over fragment path
This commit is contained in:
parent
901c3d0d85
commit
aba15a0391
@ -420,9 +420,9 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusConnection *conn
|
||||
connection,
|
||||
message,
|
||||
m,
|
||||
(u->fragment_path ? u->fragment_path: u->source_path),
|
||||
u->source_path ? u->source_path : u->fragment_path,
|
||||
&error);
|
||||
if (r)
|
||||
if (r < 0)
|
||||
return bus_send_error_reply(connection, message, &error, r);
|
||||
|
||||
if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "Start"))
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user