From nobody Fri Jul 12 05:30:08 2024 X-Original-To: freebsd-questions@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 4WL0Yk09RHz5QnXZ; Fri, 12 Jul 2024 05:30:50 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WL0Yj25kBz45gP; Fri, 12 Jul 2024 05:30:49 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=LOUSNlUK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of reshadpatuck1@gmail.com designates 2a00:1450:4864:20::32e as permitted sender) smtp.mailfrom=reshadpatuck1@gmail.com Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-426526d30aaso10993455e9.0; Thu, 11 Jul 2024 22:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720762247; x=1721367047; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=O9QtiZq5mNIyTfa2Te1hCmhTVDq1WCTiOor6pRQGcPI=; b=LOUSNlUKJASZpq/vUnL2IFv+uFHN8ppJQgNLsp+YAptS9LORUi8P/hNb5c7ZyGm0et E8kuuuYQWiHS2MmbvJcq9JSDF/4ERxwPBYcjg8KknNAb5CDCZVNk2F4cCMxRHO4hgWMp 4BqiTB3C8UZY/gidjTDNvtzSJHiqo5gGM+KYSBMkh/IEyzp8JnVhxu/eadElAO55RnIX YuAmTDr+rBFxlTHgkSK3bmSod2B7eAihUzQ4U8N2ZRqt+iVc3ctLgSN+Y4euJ9HZWanm fJaGYKr0d0UWlV0Pitu+rxj2ktMw1KW+TY0LFdKWqYdrjPxy4EjofiBjx3V/l7preZd8 q3IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720762247; x=1721367047; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O9QtiZq5mNIyTfa2Te1hCmhTVDq1WCTiOor6pRQGcPI=; b=n7vqXAVGsteqToNAkzvxrGQLNznNmpKyC8KvRZn9byiB44JTzoEO8rQI/d5/EhOj4H celqZp3Jnig7UKaUFEOwSaywpf5VHlXdDTJPA59OS3eq835NX30HIQjEFwouhFYcBTop FVl9SniSe5C4TYmuavsrXhPOMUs+rwGoD/EGr62ZI9Nr5Ae+UFnAoN/1/FO9WZ3UsCe5 sSc08tnb/3FeO7D4AK4KNGJNxsjKajfR17Vx/DZV3Vz+d4BGbgouP7Z1wTKJYo45ht35 XDQnMYXnDrJOq0zpK+uukZKMpDqPFbknEJoZ2uLbRiwTdwaV+NJwlEQ+Hmg/qWW/6jv9 +YDw== X-Forwarded-Encrypted: i=1; AJvYcCX4vGsDdEKZ/67jflZQDlONaEcrKFASXqYyJPTXXuM7hYOv2OpA4MR3l1CSFgjsvQpH2EghbS43Z03d9hdjY9dBNNB6JvFAuDr+GOQ= X-Gm-Message-State: AOJu0YwC/Yq3ZqMIGn1B6/8yTcNXnmA/qlP81jxbVW7q1/xYblJ9cgXy 6VWvjntKYaG1bpI4SnefyW6qHYh2tovSmCgtt6roHgp664RvRogca8KPfZM+YhZ3agQgYghmTNU 1lzQJ4kv098TUwBf1T6VA2LjLkC0LeZy9iz4= X-Google-Smtp-Source: AGHT+IG9nifWvb/glJpE+ZuMRxNHRCpWl+1CdYUW0NI1ozwcwyErtthZTv4OH2XJLvb81Xnyc3OU76ZpQ00DkhE9tbU= X-Received: by 2002:adf:f383:0:b0:367:8e4d:5d49 with SMTP id ffacd0b85a97d-367ceacb3a0mr6684020f8f.48.1720762247343; Thu, 11 Jul 2024 22:30:47 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 From: Reshad Patuck Date: Fri, 12 Jul 2024 11:00:08 +0530 Message-ID: Subject: SemLock as user permission denied after update to 14.1 To: freebsd-questions@freebsd.org, freebsd-pkgbase@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32e:from]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-pkgbase@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4WL0Yj25kBz45gP Hi, I have just updated one of my systems from FreeBSD 14.0 to 14.1 (using pkg-base). One of my python programs that runs as a non-root user fails to get a SemLock when running as a non-root user. This works fine on my other FreeBSD 14.0 systems. Is there anything I am missing here or during my update? Any steps to find out what permissions are missing/what has changed will be really helpful. pkg base has been complied from git hash - 1eba659e2f689d4014136048a8e470e852bdc69b ports have been compiled via poudriere from git hash - 1d024a4a0a853573d8586dc097ee9762b41c671b ##### Output from FreeBSD 14.1 running as the admin user ##### $ id uid=2000(admin) gid=2000(admin) groups=2000(admin),0(wheel) $ uname -iKmoprUv FreeBSD 14.1-RELEASE-p2 FreeBSD 14.1-RELEASE-p2 #0 1eba659e2-dirty: Thu Jul 4 14:46:15 UTC 2024 root@freebsd-zfs:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 amd64 GENERIC 1401000 1401000 $ python3.11 Python 3.11.9 (main, Jul 4 2024, 09:04:54) [Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing >>> multiprocessing.Queue() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.11/multiprocessing/context.py", line 103, in Queue return Queue(maxsize, ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/multiprocessing/queues.py", line 43, in __init__ self._rlock = ctx.Lock() ^^^^^^^^^^ File "/usr/local/lib/python3.11/multiprocessing/context.py", line 68, in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 169, in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 57, in __init__ sl = self._semlock = _multiprocessing.SemLock( ^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied >>> ##### Output from FreeBSD 14.1 running as the root user ##### # id uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) # uname -iKmoprUv FreeBSD 14.1-RELEASE-p2 FreeBSD 14.1-RELEASE-p2 #0 1eba659e2-dirty: Thu Jul 4 14:46:15 UTC 2024 root@freebsd-zfs:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 amd64 GENERIC 1401000 1401000 # python3.11 Python 3.11.9 (main, Jul 4 2024, 09:04:54) [Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing >>> multiprocessing.Queue() >>> ##### Output from FreeBSD 14.0 running as the admin user ##### $ id uid=2000(admin) gid=2000(admin) groups=2000(admin),0(wheel) $ uname -iKmoprUv FreeBSD 14.0-RELEASE-p8 FreeBSD 14.0-RELEASE-p8 #0 5e2380679-dirty: Thu Jul 4 08:31:06 UTC 2024 root@freebsd-zfs:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 amd64 GENERIC 1400097 1400097 $ python3.11 Python 3.11.9 (main, Jul 4 2024, 09:04:54) [Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing >>> multiprocessing.Queue() >>> Best, Reshad