mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
core/namespace: Protect /usr instead of /home with ProtectSystem=yes
A small typo in ee818b8
caused /home to be put in read-only instead of
/usr when ProtectSystem was enabled (ie: not set to "no").
This commit is contained in:
parent
98d7580046
commit
d38e01dc96
Notes:
Lennart Poettering
2015-06-17 23:46:36 +02:00
Backport: bugfix
@ -499,7 +499,7 @@ int setup_namespace(
|
|||||||
if (protect_system != PROTECT_SYSTEM_NO) {
|
if (protect_system != PROTECT_SYSTEM_NO) {
|
||||||
const char *usr_dir, *boot_dir, *etc_dir;
|
const char *usr_dir, *boot_dir, *etc_dir;
|
||||||
|
|
||||||
usr_dir = prefix_roota(root_directory, "/home");
|
usr_dir = prefix_roota(root_directory, "/usr");
|
||||||
boot_dir = prefix_roota(root_directory, "/boot");
|
boot_dir = prefix_roota(root_directory, "/boot");
|
||||||
boot_dir = strjoina("-", boot_dir);
|
boot_dir = strjoina("-", boot_dir);
|
||||||
etc_dir = prefix_roota(root_directory, "/etc");
|
etc_dir = prefix_roota(root_directory, "/etc");
|
||||||
|
Loading…
Reference in New Issue
Block a user