From nobody Tue Mar 15 09:09:54 2022 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 112C11A12606 for ; Tue, 15 Mar 2022 09:09:55 +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 4KHnfp4cgNz4jQL for ; Tue, 15 Mar 2022 09:09:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 7AC4F1E7EA for ; Tue, 15 Mar 2022 09:09:54 +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 22F99s99002927 for ; Tue, 15 Mar 2022 09:09:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22F99sCZ002926 for jail@FreeBSD.org; Tue, 15 Mar 2022 09:09:54 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 228351] cannot unhide log or tty with devfs.rules Date: Tue, 15 Mar 2022 09:09:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei.huang@gmail.com X-Bugzilla-Status: New 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647335394; 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=aDPrbiUq0ullgJzqkv0hhW6JhLAwLvfVw24Hnd0TLug=; b=MyLkJPa/xnfuHPaTn1VFz0uxGoU4bZl/M5+tq2KVhXR3jvmKDbO7UOsHKQ1xdxihrqmbDO R6/xDg4y/JEltmZ3Y1+J0LRoq90fzpzLrNKsA0MMjzsWrMX5lANCux2UI9rI5UNEiWPEqu j9QJ8Qd9cUNkMUnIWytM/eZu/BC529xSW/X5URYoUDaa54sOxDZSqnKohFlIUMpFVHZlHX X03r79wqBhchV5qsMDLUQEE72b7Ix/sAZYbZLD3NdCsl+jSvWMneRq8kaSul/w1lDkiGl5 oCzamOU4JpsSG1cqW1a+P3DLidXLimqc3IydNdxuU1O7fS7AuEJZNv8ZVbysVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647335394; a=rsa-sha256; cv=none; b=audpRBc//c1mz3gyVYpO9HkaEi6U+umrxryXnhMTGaLrXSWPGtMfLjYywrwfnlYlsIS67T gNq6pnn6Ax+HQVjBRl3SodegCImGnQqII+QG9o0fWNCr879cdLZPL73z4xyvWem9+8JAby tCINshtgKlYBNaPP/tINIyCPP+BAUSDkAtKV5FZz2Wzu2EuB8cCLnna7FG2QoghdxSwO0Z gaiTeYKAcnfT6sP8NDDbiUQ7tkEdbMvp65gNyN343kwd6epTWxbLA1feF4Tyo8Cidgr/sS 86d2PQqOCPgV2IU1SzTV9X6vsaAF8qSgVD2jsTptypKvmTG9ivRTIO9g0rWfaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228351 --- Comment #4 from Zhenlei Huang --- (In reply to Zhenlei Huang from comment #2) > For jails, the symbolic link is not created due to PR https://bugs.freebs= d.org/bugzilla/show_bug.cgi?id=3D179828 . Sorry it is misleading. The unhide for log is introduce by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D160711 , but after https://cgit.freebsd.org/src/commit/etc/rc.d/jail?id=3D84b354cb9ab61224713c= 159b1484e8f070fd37be the logic of creating /dev/log is removed, as consequence there's no /dev/l= og anymore for created jails. The symptoms is devfs can not unhide log but that is not true. You can repe= at on FreeBSD 13.0 as following: # mkdir -p /tmp/dev # mount -t devfs devfs /tmp/dev # ln -sf /var/run/log /tmp/dev/log # devfs -m /tmp/dev rule -s 4 applyset # ls -ll /tmp/dev (In reply to Jason Mader from comment #3) > I probably don't. I guess it was just unexpected since, /etc/defaults/dev= fs.rules has: The /dev/log is transitional symlink for old binaries, it is about ten years since it was there. We can bravely remove it as it seems nobody complains a= bout it, at least for jail users. --=20 You are receiving this mail because: You are the assignee for the bug.=