From owner-freebsd-fs@freebsd.org Tue Nov 21 18:53:17 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1E07DF6BB2 for ; Tue, 21 Nov 2017 18:53:17 +0000 (UTC) (envelope-from daniel@versatushpc.com.br) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C5817B910 for ; Tue, 21 Nov 2017 18:53:17 +0000 (UTC) (envelope-from daniel@versatushpc.com.br) Received: by mail-qk0-x229.google.com with SMTP id w125so13462031qkb.6 for ; Tue, 21 Nov 2017 10:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=versatushpc-com-br.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=rASIKlKoldpIca3QXVGAlG6BmFCTlm4xbvIzCWp26Fs=; b=c08kqJA3gueRI7j9wZylsZWcfj8ybAA2MjEbawQsESP69rrgbgIEEioTF+fjgGljIU JRR34adiNpLTo9/Q4p1OfLN9x0Sa6J02vmHSSzsE+5fo+QySVr4Gb7D5eCJ2OqAVxOv2 NUIEwnJpSJ0l+Y+xcCu/rQZXwSQLXAZr4jM3skpqCkm8m9sT1woTgwsC4eGEio23hWdY V8aarZA5T39DeFQXxP3mSvs3t2f00S1JQsmo8sgQPpEy9XJ4dPXERyR+LstSRco5csvY SPZ12cOuaMwP9aVfc8uRh6aE8/dtkHFao8BG2vBnqkEmWWqOe8WnxjDQ7p+JNAkVoCRi GnTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=rASIKlKoldpIca3QXVGAlG6BmFCTlm4xbvIzCWp26Fs=; b=uVKUOKkJZTdk3xZtbP1jbjaAdIJW1Jdm4p43C2zBRk54BlkDryCw2MXU8V32jwd3Hp 0FfID5JRs8Co9LoBUJtDGCNWemn8YvwvW39oHqMHqMVTt4Cn2jnRNroJF54X5z3SHgr0 wW6O5PmEhd1q0uV2t1tPFZofvoLeeI8fFmJgC6syqlHq5jVaGj1LvSAkr55r2bQiOd3F DjoxFSzb6ZytGqdIXawAsOf9/55vj3DcUbD3i7qWPbTN1NrSQB7CgJMr3By4AygKUPAp Y/0Bz09hI3Za9uQT15VKoOmYRQpuXCz3yPpevoPPdQCeKDtpl2B4x6U3Tcgq3ZwT8QBr 2MsQ== X-Gm-Message-State: AJaThX5k2vxINW2dx8bd0bvjeQiMb6moZAOkVqbGrDxImqx87NZzK0IZ tx66GWZ0cLCS/JHfp3iJeVNgv045Vls= X-Google-Smtp-Source: AGs4zMZEdHT3giClVBiRFrnSC2OJGSUVDwkv9Di83InvMnA36Xp8wpXYwD3ZkBQ03USF6CV98+NZeQ== X-Received: by 10.55.186.71 with SMTP id k68mr5805509qkf.58.1511290396152; Tue, 21 Nov 2017 10:53:16 -0800 (PST) Received: from dhilst-thinkpad ([179.228.138.121]) by smtp.gmail.com with ESMTPSA id 201sm9107215qkh.87.2017.11.21.10.53.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Nov 2017 10:53:14 -0800 (PST) Message-ID: <1511290391.2569.35.camel@versatushpc.com.br> Subject: Restricting zfs metadata view for non-root users. From: Daniel Hilst Selli To: freebsd-fs@freebsd.org Date: Tue, 21 Nov 2017 16:53:11 -0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 18:53:17 -0000 Hi everybody! I was testing zfs delegated administration [1]. I see that user without permissions couldn't read data from datasets but they still can read all the zfs metadata. Is this right? In my setup I have two users, foo and bar. They both have it's own datasets. As foo I can't read bar's snapshots, but he can list them. Is there a way to restrict metadata shown to one user? I don't want to expose snapshots from one user to another but still want they to be able to do their own backups by sending snapshots to this host. Regards! Daniel, [1]https://www.freebsd.org/doc/handbook/zfs-zfs-allow.html