Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod From: David Wright Newsgroups: linux.debian.user Subject: Re: How to secure access to SD cards a la USBGuard? Date: Mon, 06 Dec 2021 17:20:02 +0100 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Mon Dec 6 16:19:07 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-8.952 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=pdkcox@cox.net X-Authority-Analysis: v=2.4 cv=bZ947cDB c=1 sm=1 tr=0 ts=61ae37ec a=Lgkz+srVTlLlCuK1Y0XrAg==:117 a=Lgkz+srVTlLlCuK1Y0XrAg==:17 a=HtVkLTzhq2sJd-Zd:21 a=kj9zAlcOel0A:10 a=Tr81KWbbR5YKsnU0j1UA:9 a=CjuIK1q_8ugA:10 a=rACBFbLkZFAfLVCtCu9t:22 Reply-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Cmae-Envelope: MS4xfOmpppkdyv+hZaQWRYO9zea6ceP11Uy6hLOW6C88wQOf6INj5FU9kNQeNFL4SGT7OibQknimmj9fjHZMnnULGz3NagpnF/v9mMWFciC2UhrEf+DRwhsN lp2VX4NMotXyAuGznAJCfBfr3KvS9GiUF+pZV4piLOYS4FNJtshAxEE2RX17j2ifZ4nJCpMwoE6fQlQ+L8VAmKU+KQk24hPgpnjA/YDEC4K/NL0QJWx6mcet 8HTolHq4h7Jf/VJS7KsYjRltt63Gk2T+nb/KstGFKY8= X-Mailing-List: archive/latest/783497 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20211206161849.GD5554@axis.corp Approved: robomod@news.nic.it Lines: 19 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 6 Dec 2021 10:18:49 -0600 X-Original-Message-ID: <20211206161849.GD5554@axis.corp> X-Original-References: <32bfedbe-c0a3-dbcf-0afd-935d40d41081@gmail.com> <20211205123341.zq7hkx6pz6ccazai@acr13.nuvreauspam> Xref: csiph.com linux.debian.user:242726 On Sun 05 Dec 2021 at 13:33:41 (+0100), Andrei POPESCU wrote: > On Vi, 12 nov 21, 12:27:59, Stefan Monnier wrote: > > > > As mentioned, the way to control it will depend on the specific tool > > used to mount. E.g. if it's mounted by hand via a rule in /etc/fstab, > > then you can rules that specify the device via /etc/disk/by-uuid. > > > > Do note that partition UUIDs are not designed to be reliable w.r.t > > malicious uses (it's easy to create a partition with the same UUID as > > some other). > > /dev/disk/by-id/ should be device specific. It certainly is, but specific to the card reader reading it, not the card. And that's whether the card is plugged into a slot on the computer, or into a discrete SD/USB adapter. Cheers, David.