mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
Include additional directories in ProtectSystem
This commit is contained in:
parent
f6de1b02fe
commit
7486f305cd
@ -148,6 +148,12 @@ static const MountEntry protect_system_yes_table[] = {
|
||||
{ "/usr", READONLY, false },
|
||||
{ "/boot", READONLY, true },
|
||||
{ "/efi", READONLY, true },
|
||||
#if HAVE_SPLIT_USR
|
||||
{ "/lib", READONLY, true },
|
||||
{ "/lib64", READONLY, true },
|
||||
{ "/bin", READONLY, true },
|
||||
{ "/sbin", READONLY, true },
|
||||
#endif
|
||||
};
|
||||
|
||||
/* ProtectSystem=full includes ProtectSystem=yes */
|
||||
@ -156,6 +162,12 @@ static const MountEntry protect_system_full_table[] = {
|
||||
{ "/boot", READONLY, true },
|
||||
{ "/efi", READONLY, true },
|
||||
{ "/etc", READONLY, false },
|
||||
#if HAVE_SPLIT_USR
|
||||
{ "/lib", READONLY, true },
|
||||
{ "/lib64", READONLY, true },
|
||||
{ "/bin", READONLY, true },
|
||||
{ "/sbin", READONLY, true },
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user