From owner-freebsd-hackers@freebsd.org Mon May 3 11:12:28 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E5FF262F193 for ; Mon, 3 May 2021 11:12:28 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FYgL34kK6z4jND for ; Mon, 3 May 2021 11:12:27 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f182.google.com with SMTP id e12so3977978ljn.2 for ; Mon, 03 May 2021 04:12:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rwEzmdF3ipOx5AsjgJaQKSrYbnJRwWIu1EXw48wBW5E=; b=CVLxAmAtf8Peu2cW1gBB2OuJGtRg+o+1YgtvCwyl5S8+OGl/Ydq0fKNgM8PkKHczzA N0uuvMy62fFXmNpojmWgEsSRZ0M+pVfZYPYzA0/gpmP6aCs9SuAOwfjZnRr5TFL2zryX NgiPWPupEGxhYpmo3+bn+V6pD/2p1FuB42BzodmPQcRPDdJAH/fymWo1P+2b6F/yeTIp HumUlb91Tvf71iQPb6ejRcH+jjRKhVjmz4hrtFlBmU1Qs8HBlRNGtTr7+1VvExv97PaN J1EUtauMQXoW8bG0Dgi6gb5VdgcQCE17hE/fElkuQjDFxlqCqM6nXTx9S2EHLZtZd0BN d7Mw== X-Gm-Message-State: AOAM533t2kFK5Hecj1CcWviDipmtFahHImTiLPOuxNQIjCcUMaJDwvYl WNEdb1bTzjafAAME6HiOKGUpK4FTQnSX+w== X-Google-Smtp-Source: ABdhPJxVaJANMpDAFmLkTKVpx27EAbCpgzSn2UK3L6hz/Ncjyh8ssh1959NyEggmMxh4mlomvnZpnw== X-Received: by 2002:a2e:b5cd:: with SMTP id g13mr13392623ljn.0.1620040345708; Mon, 03 May 2021 04:12:25 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id l11sm1109137lfg.279.2021.05.03.04.12.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 04:12:25 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id c3so3436897lfs.7 for ; Mon, 03 May 2021 04:12:25 -0700 (PDT) X-Received: by 2002:a19:f01a:: with SMTP id p26mr12909273lfc.139.1620040345434; Mon, 03 May 2021 04:12:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gleb Popov Date: Mon, 3 May 2021 14:11:59 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ACLs are not reflected in FS extended attributes To: Ryan Moeller Cc: freebsd-hackers X-Rspamd-Queue-Id: 4FYgL34kK6z4jND X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.182 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.208.182:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[209.85.208.182:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.182:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.182:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 11:12:29 -0000 On Tue, Apr 27, 2021 at 8:58 PM Ryan Moeller wrote: > ACLs on FreeBSD are not exposed through extended attributes but rather > acl(9) interfaces in VFS implemented by each filesystem. There is a > good selection of library interfaces already in acl(3). > acl_extended_file(3) looks like it could be pretty much a convenience > wrapper around acl_is_trivial_np(3). Hope that helps point you in the > right direction! > > -Ryan > Thanks for your reply. Indeed, I used acl_is_trivial_np to implement this function and it seems to work!