summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Pleau <jason@jpleau.ca>2015-05-31 12:51:17 -0400
committerMartin Pitt <martin.pitt@ubuntu.com>2015-05-31 20:29:36 +0200
commitd38e01dc96c5cae1986561c4f3bc7f760560bf2a (patch)
tree5e5c7b229d75099c4f80f52636ae3ddd3b1c6f3a /src
parent98d75800461c091e95398936ceb1efc2d5a3f699 (diff)
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").
Diffstat (limited to 'src')
-rw-r--r--src/core/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index 7d0b7e7e84..01a817bf23 100644
--- a/src/core/namespace.c
+++ b/src/core/namespace.c
@@ -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");