mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
core: unit_label_path(): take const unit
This commit is contained in:
parent
2979f04b99
commit
f156e60c66
@ -5803,9 +5803,11 @@ bool unit_needs_console(Unit *u) {
|
||||
return exec_context_may_touch_console(ec);
|
||||
}
|
||||
|
||||
const char *unit_label_path(Unit *u) {
|
||||
const char *unit_label_path(const Unit *u) {
|
||||
const char *p;
|
||||
|
||||
assert(u);
|
||||
|
||||
/* Returns the file system path to use for MAC access decisions, i.e. the file to read the SELinux label off
|
||||
* when validating access checks. */
|
||||
|
||||
|
@ -842,7 +842,7 @@ int unit_warn_leftover_processes(Unit *u);
|
||||
|
||||
bool unit_needs_console(Unit *u);
|
||||
|
||||
const char *unit_label_path(Unit *u);
|
||||
const char *unit_label_path(const Unit *u);
|
||||
|
||||
int unit_pid_attachable(Unit *unit, pid_t pid, sd_bus_error *error);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user