From nobody Thu Mar 14 16:39:49 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TwY512Rrjz5DNNR for ; Thu, 14 Mar 2024 16:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TwY510cjYz47BM for ; Thu, 14 Mar 2024 16:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710434389; a=rsa-sha256; cv=none; b=bys/FxglM4MQZdOALummhh0RlNj+ZBne6MyaluTO9zEH78wWMgqbU725LVDCNP969+4dIi GSGyz6sPlsojraRJQwzmmIfq3UAOBuhXKMsYvbYjiZ2fXHBTsW1Flz0EkxItqJX7oEkAo0 hYQX4GwCawwu9h74FkxCkUsL5cTrJ3QCsLWpaEc/zpz7IiyF5Vf7LKV7/gm1NXT67se8sy Z6l9cyiHBPXqzF0j/pCtvt6w9481AfpTBSgTK2cSJwrsy83noOobYT2+pyVOWYzsd2fX6C bKhnNIsh13OFMQ7EVylZFd4Uqhl+PgHg0oElB72fk/1x4IC1rPB/foEEU2tibw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710434389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E0jL6Hk0sCedaDRadf4RfC91BtD67KNkTzTiLNZCewE=; b=LuYHxD9v6iXDgTC6L84bBBqQSohW/mU042FOl0CmFqxAWrTQPsizFbs4dT7cP92FsQCSkK aT635lrwY/KhdfD0BBbSyZZtMBkSjfJF/ry0gSXMen0c7IQsBroPpXUEY6D/jJhYxO1K8N Yr5NsLeIcueblkHjGIc+EBz5c0LvCj+S8FwpUhJ7wi6XKM+NY+oQJPGovARq+y3Gy22vui suhmz5AU0iAOkwdahejC9RgzdNmuHROWUtYl7ej5W9QY6Eey6m1Dlukf5bhn+i/naBtrID /ekItLhyaByS1gBzP1lW/SMbc95Sku2vp4nSgYbVnAkzxRe2da4Pa/2YLpw5yg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TwY5105Vzzb93 for ; Thu, 14 Mar 2024 16:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42EGdm5Z085534 for ; Thu, 14 Mar 2024 16:39:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42EGdmtE085529 for jail@FreeBSD.org; Thu, 14 Mar 2024 16:39:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 277210] jail(8): exec.clean retrieves PWD from user info (can cause services to crash on jail start-up) Date: Thu, 14 Mar 2024 16:39:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: frank@harz.behrens.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277210 Frank Behrens changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frank@harz.behrens.de --- Comment #8 from Frank Behrens --- I discovered the same problem, even without an exec.clean. In the script, called from the service start script is a d=3D`pwd` .. cd $d which fails, after the effective user for the service has been changed. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Mar 14 17:35:04 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TwZJm3FxKz5DSkR for ; Thu, 14 Mar 2024 17:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TwZJm29z0z4G0Z for ; Thu, 14 Mar 2024 17:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710437704; a=rsa-sha256; cv=none; b=kOU1oV8Ti/opWQSxigYp7M4nTVjphodLuASKr1wzZAKb9UuUB5i5IyKql8zd7e7yQ9p86c S9/KVXC76Zd0gNCcit+sK2dVLyt7QCVXNTSQ6CQEb+AkTmLbKPptgtSDUuZWMPLb9U+xxr rL4/XTSBzoCQKJ1R3A1s1TZgeslDoVy/jWpYxX9pTaE4RCK/YzBHQT3G0AOldxLnvy1FXO w2r6XMx3J5OqMN5cDZQaqQ1nlscfXSxeO8aY6o80M0WckxC5RHIONtKrA+XpKyx2iCF7jg 787mPq3bhzdlUNWAoKGhJdbZuSt6uhstHGnOo9PxZWLV0GT+NdlPlKfnyTX1Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710437704; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5C8zOUg1H0rRnuqlXZVKUFS5DSlq+128C9lYGhGEWRM=; b=tgNYGreRAHQ9LisHwymCX0G4tjJsfFmsMelnzajyEEixC0e2N4f6sAE8V4433rb/i7J4OI DdJJGixahYekmIL5myYB1BKUZBWlrnoruA7esAdUmnPxk0h/+8P73cD3hXpQ0H3XMAsmqH A/ixMxNtZcMJi2J+eGVCDHTjFnOUoIHMNXkRBwjxZj0i6u0GW+pQY5YaD33hT0iqEjBFDr TDd5oQ4FHC19Dy846ugDxAWnMVCY40E8EivR9qFXaHKHNW5JT++ArzAZWyU1A7VLY4w5Wd r99nr218PBYyEjtIoIZN6SizG1dXcbmdVqBtowQUDkTcLhvLciAk/DI6DJ1Ivg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TwZJm1ntQzcRD for ; Thu, 14 Mar 2024 17:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42EHZ47X088861 for ; Thu, 14 Mar 2024 17:35:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42EHZ4BM088860 for jail@FreeBSD.org; Thu, 14 Mar 2024 17:35:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 277210] jail(8): exec.clean retrieves PWD from user info (can cause services to crash on jail start-up) Date: Thu, 14 Mar 2024 17:35:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: johannes.kunde@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277210 --- Comment #9 from johannes.kunde@gmail.com --- (In reply to Frank Behrens from comment #8) > In the script, called from the service > start script is a > d=3D`pwd` > .. > cd $d Can you please provide the source? Would be great to have it tracked here. --=20 You are receiving this mail because: You are the assignee for the bug.=