From e92d5d54195bae30ca78f33371460b98f94cc2ef Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 14 Dec 2016 09:20:52 -0500 Subject: machine-id fix --- src/firejail/fs_etc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/firejail/fs_etc.c b/src/firejail/fs_etc.c index a04bf6725..a27c0e41b 100644 --- a/src/firejail/fs_etc.c +++ b/src/firejail/fs_etc.c @@ -58,7 +58,6 @@ void fs_machineid(void) { struct stat s; - // mount-bind if (stat("/etc/machine-id", &s) == 0) { if (arg_debug) printf("installing a new /etc/machine-id\n"); @@ -66,12 +65,10 @@ void fs_machineid(void) { if (mount(RUN_MACHINEID, "/etc/machine-id", "none", MS_BIND, "mode=444,gid=0")) errExit("mount"); } -//#if 0 // todo: investigate if (stat("/var/lib/dbus/machine-id", &s) == 0) { - if (mount(RUN_MACHINEID, "/etc/machine-id", "none", MS_BIND, "mode=444,gid=0")) + if (mount(RUN_MACHINEID, "/var/lib/dbus/machine-id", "none", MS_BIND, "mode=444,gid=0")) errExit("mount"); } -//#endif } // return 0 if file not found, 1 if found -- cgit v1.2.3-70-g09d2