X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fnamespace.c;h=4bc288de1d5065e6a51a45b351a2469743d03f77;hb=45071fcaa03eafc27352987fa2277b2792725036;hp=c2215090a9dfa2bea6d7ecc572d1e22d362b2dac;hpb=d267c5aa3d0fe4960165a1e1c00a840eef8b7d00;p=elogind.git diff --git a/src/core/namespace.c b/src/core/namespace.c index c2215090a..4bc288de1 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -225,9 +225,9 @@ static int mount_dev(BindMount *m) { goto fail; } - label_context_set(d, st.st_mode); + mac_selinux_create_file_prepare(d, st.st_mode); r = mknod(dn, st.st_mode, st.st_rdev); - label_context_clear(); + mac_selinux_create_file_clear(); if (r < 0) { r = -errno; @@ -424,9 +424,9 @@ int setup_namespace( char** read_write_dirs, char** read_only_dirs, char** inaccessible_dirs, - char* tmp_dir, - char* var_tmp_dir, - char* bus_endpoint_path, + const char* tmp_dir, + const char* var_tmp_dir, + const char* bus_endpoint_path, bool private_dev, ProtectHome protect_home, ProtectSystem protect_system,