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:
Jason Pleau 2015-05-31 12:51:17 -04:00 committed by Martin Pitt
parent 98d7580046
commit d38e01dc96
Notes: Lennart Poettering 2015-06-17 23:46:36 +02:00
Backport: bugfix

View file

@ -499,7 +499,7 @@ int setup_namespace(
if (protect_system != PROTECT_SYSTEM_NO) {
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 = strjoina("-", boot_dir);
etc_dir = prefix_roota(root_directory, "/etc");