From nobody Wed Jun 16 19:58:16 2021 X-Original-To: bugs@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 D43C211CE184 for ; Wed, 16 Jun 2021 19:58:16 +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 4G4wwS5bbmz3JPP for ; Wed, 16 Jun 2021 19:58:16 +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 A961E21AD5 for ; Wed, 16 Jun 2021 19:58:16 +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 15GJwGpa076415 for ; Wed, 16 Jun 2021 19:58:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15GJwGLE076414 for bugs@FreeBSD.org; Wed, 16 Jun 2021 19:58:16 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: bugs@FreeBSD.org Subject: [Bug 256658] ugidfw starts before late mount of nfs causing permissions errors on /var/run/nslcd Date: Wed, 16 Jun 2021 19:58:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dvl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256658 Bug ID: 256658 Summary: ugidfw starts before late mount of nfs causing permissions errors on /var/run/nslcd Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: dvl@FreeBSD.org This has affect hosts installed with FreeBSD 13 and upgraded from 12 to 13. A summary of the discovery process appears first, followed by the complicat= ing factors which colluded to create the problem. Initial symptom was inability of non-root to use / access Kerberos. With a valid ticket on your laptop, you could ssh to a host where klist should sho= w no valid ticket (we ssh'd in via ssh-keys). $ id dvl id: dvl: no such user $ truss id dvl .... connect(3,{ AF_UNIX "/var/run/nslcd/nslcd.ctl" },26) ERR#13 'Permission den= ied' .... Permissions on that directory and its contents matched that on 12.x hosts w= hich did not have this issue. An IRC guru suggested: $ sysctl security.mac | grep enabled security.mac.bsdextended.firstmatch_enabled: 1 security.mac.bsdextended.enabled: 1 Looking at bsdextended_script within /etc/rc.conf led to rules which impose restrictions upon /usr/home Let's try: service ugidfw restart id dvl - now works. summary of complicating factors: * /usr/home is mounted by NFS with:=20 foo.example.com:/home /usr/home nfs=20=20=20=20 hard,late,intr,wsize=3D65536,rsize=3D65536,port=3D2049,rw 0 0 * bsdextended_script points to rules which impose restrictions upon /usr/hom * FreeBSD 12 does not show this issue * FreeBSD 13 has this issue * new 13 installs and upgrades from 12 have the same problem * restating ugidfw after boot solves the issue * removing hard,late from NFS did not solve the issue * adding mountlate to the REQUIRES in /etc/rc.d/ugidfw solves the issue --=20 You are receiving this mail because: You are the assignee for the bug.=