namespace: when DynamicUser=1 is set, mount StateDirectory= bind mounts "nosuid"
Add even more suid/sgid protection to DynamicUser= envionments: the state directories we bind mount from the host will now have the nosuid flag set, to disable the effect of nosuid on them.
This commit is contained in:
@@ -2365,6 +2365,7 @@ static int compile_bind_mounts(
|
||||
.source = s,
|
||||
.destination = d,
|
||||
.read_only = false,
|
||||
.nosuid = context->dynamic_user, /* don't allow suid/sgid when DynamicUser= is on */
|
||||
.recursive = true,
|
||||
.ignore_enoent = false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user