From d12cc561978942cef9ead6d9531c98f6d2ce1af6 Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 10 Dec 2003 18:05:55 +0000 Subject: [PATCH] Clean also '/var/lib/captive/tmp/*' besides '/var/lib/captive/*'. --- src/client/sandbox-server/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/sandbox-server/main.c b/src/client/sandbox-server/main.c index db3e064..cd24a72 100644 --- a/src/client/sandbox-server/main.c +++ b/src/client/sandbox-server/main.c @@ -430,8 +430,10 @@ gint gi; } g_rand_free(grand); *s=0; - if (geteuid()==0) /* Not 'fragile' as we can be native 'root'. */ + if (geteuid()==0) { /* Not 'fragile' as we can be native 'root'. */ chrooted_cleanuplockeddirs(optarg_chroot,"s-"); + chrooted_cleanuplockeddirs(captive_printf_alloca("%s/tmp",optarg_chroot),"captive-orbit-"); + } chroot_pid_dir=captive_printf_alloca("%s/s-%d",optarg_chroot,(int)getpid()); chrooted_createdir(chroot_pid_dir,(!optarg_setuid ? (uid_t)-1 : want_uid),(!optarg_setgid ? (gid_t)-1 : want_gid), TRUE); /* lock */ -- 1.8.3.1