ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Отключение USB-накопителей
Date: Thu, 3 Mar 2011 15:34:54 +0300
Message-ID: <20110303123454.GC24590@newmaster.mivlgu.local> (raw)
In-Reply-To: <201103031157.57351.lex@asd.iao.ru>

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

On Thu, Mar 03, 2011 at 11:57:57AM +0600, Alexey Petrakov wrote:
> Возникла такая задача: отключить на определённых машинах возможность
> пользоваться флешками и прочими USB-накопителями. Ломаю голову как это
> сделать.
> Первой идеей было написать правило для udev, которые выставит на
> создаваемое устройство права 0000. Написал, выставило. Однако,
> монтироваться это флешке ничуть не мешает.

Для монтирования права доступа к блочному устройству не требуются.

Правильный на сегодняшний день способ ограничения доступа к
USB-устройствам (работающий с любыми устройствами, а не только с
usb-storage) описан в документации ядра
(Documentation/usb/authorization.txt):

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/usb/authorization.txt;hb=HEAD

Попытки оформить это в виде правил udev:

  http://permalink.gmane.org/gmane.linux.hotplug.devel/16602

(и другие сообщения в этом обсуждении - окончательный вариант правил
там пока не сформировали).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2011-03-03 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  5:57 Alexey Petrakov
2011-03-03  9:43 ` Dmitry Chistikov
2011-03-03 10:20   ` Alexey Petrakov
2011-03-03 12:34 ` Sergey Vlasov [this message]
2011-03-04  3:30   ` Alexey Petrakov
2011-03-04 15:10     ` Sergey Vlasov
2011-03-08 10:24       ` Alexey Petrakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110303123454.GC24590@newmaster.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git