From 3a0ca77264d8721a51f9073cab94ff45a6c923ff Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Feb 2020 08:50:12 +0100 Subject: [PATCH] xbps-uchroot: stop remounting / unnecessarily. The remount is done to use nosuid, but we can get rid of the remount just because of this specific option that does not have too much value for our general usage (xbps-src). --- bin/xbps-uchroot/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/xbps-uchroot/main.c b/bin/xbps-uchroot/main.c index bbd7b652..8f60edf3 100644 --- a/bin/xbps-uchroot/main.c +++ b/bin/xbps-uchroot/main.c @@ -409,8 +409,6 @@ main(int argc, char **argv) /* mount as private, systemd mounts it as shared by default */ if (mount(NULL, "/", "none", MS_PRIVATE|MS_REC, NULL) == -1) die("Failed to mount / private"); - if (mount(NULL, "/", "none", MS_PRIVATE|MS_REMOUNT|MS_NOSUID, NULL) == -1) - die("Failed to remount /"); /* setup our overlayfs if set */ if (overlayfs)