1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

core: do not set noexec on sysfs/procfs

It causes a regression in certain running environments (networkd under LXC),
so avoid enabling for now.

Fixes #18795

Suggested-by: Topi Miettinen <toiwoton@gmail.com>
This commit is contained in:
Luca Boccassi 2021-02-25 18:49:53 +00:00 committed by Topi Miettinen
parent da0d560905
commit b33cd6b3ee

View File

@ -272,7 +272,7 @@ static bool mount_entry_read_only(const MountEntry *p) {
static bool mount_entry_noexec(const MountEntry *p) {
assert(p);
return p->noexec || IN_SET(p->mode, NOEXEC, INACCESSIBLE, SYSFS, PROCFS);
return p->noexec || IN_SET(p->mode, NOEXEC, INACCESSIBLE);
}
static bool mount_entry_exec(const MountEntry *p) {