1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

Revert "core: do not set noexec on sysfs/procfs"

This reverts commit b33cd6b3ee.
This commit is contained in:
Lennart Poettering 2021-03-01 18:02:24 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 24c006d83d
commit 988bcc7c21

View File

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