mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
execute: add one more assert()
This commit is contained in:
parent
9f27df2938
commit
e43911a78e
@ -2412,6 +2412,8 @@ static int setup_private_users(uid_t ouid, gid_t ogid, uid_t uid, gid_t gid) {
|
||||
}
|
||||
|
||||
static bool exec_directory_is_private(const ExecContext *context, ExecDirectoryType type) {
|
||||
assert(context);
|
||||
|
||||
if (!context->dynamic_user)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user