1
0
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:
Lennart Poettering 2023-04-04 13:41:00 +02:00
parent 9f27df2938
commit e43911a78e

View File

@ -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;