ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Petrakov <lex@asd.iao.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Отключение USB-накопителей
Date: Fri, 4 Mar 2011 09:30:22 +0600
Message-ID: <201103040930.22812.lex@asd.iao.ru> (raw)
In-Reply-To: <20110303123454.GC24590@newmaster.mivlgu.local>

В сообщении от 3 марта 2011 18:34:54 автор Sergey Vlasov написал:
> On Thu, Mar 03, 2011 at 11:57:57AM +0600, Alexey Petrakov wrote:
> Для монтирования права доступа к блочному устройству не требуются.

Жаль. Такой удобный механизм, очень печально что его похерили.

> Правильный на сегодняшний день способ ограничения доступа к
> 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
> (и другие сообщения в этом обсуждении - окончательный вариант правил
> там пока не сформировали).

Спасибо. Ознакомился. На мой взгляд, это в некоторой мере стрельба из пушки по 
воробьям. И, к тому же, там, как я понял, реализован принцип "сначала запретим 
всё что каается УСБ, а потом будем разрешать что можно", а мне нужно наоборот 
"можно всё, кроме указанного", да и разгребать баги с отвалившимися мышами, 
клавиатурами и принтерами не хочется совсем.
На данный момент наиболее адекватным считаю следующее правило удева:

SUBSYSTEM=="block", DRIVERS=="usb-storage", NAME=""

Если я в чём-то не прав - с радостью приму замечания.


  reply	other threads:[~2011-03-04  3:30 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
2011-03-04  3:30   ` Alexey Petrakov [this message]
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=201103040930.22812.lex@asd.iao.ru \
    --to=lex@asd.iao.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