chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73ff5e
)
mount-setup: change bpf mount mode to 0700 (#8334)
author
Lennart Poettering
<lennart@poettering.net>
Fri, 2 Mar 2018 11:55:24 +0000
(12:55 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:11 +0000
(07:59 +0200)
After discussing with the kernel folks, we agreed to default to 0700 for
this. Better safe than sorry.
src/core/mount-setup.c
patch
|
blob
|
history
diff --git
a/src/core/mount-setup.c
b/src/core/mount-setup.c
index 7786e22ca256a188e103379aab75f5b2171ace73..8fb0a1dea8d25e99794b196afbbfa1ac9eb8cbf3 100644
(file)
--- a/
src/core/mount-setup.c
+++ b/
src/core/mount-setup.c
@@
-124,7
+124,7
@@
static const MountPoint mount_table[] = {
{ "efivarfs", "/sys/firmware/efi/efivars", "efivarfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
is_efi_boot, MNT_NONE },
#endif
- { "bpf", "/sys/fs/bpf", "bpf",
NULL,
MS_NOSUID|MS_NOEXEC|MS_NODEV,
+ { "bpf", "/sys/fs/bpf", "bpf",
"mode=700",
MS_NOSUID|MS_NOEXEC|MS_NODEV,
NULL, MNT_NONE, },
#else
{ "cgroup", "/sys/fs/cgroup/elogind", "cgroup", "none,name=elogind,release_agent="SYSTEMD_CGROUP_AGENT_PATH",xattr", MS_NOSUID|MS_NOEXEC|MS_NODEV,