linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Passing ADD/REMOVE events to logged on users
Date: Tue, 19 Feb 2002 07:47:55 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-101410506801032@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-101409633016838@msgid-missing>

On Tuesday 19 February 2002 06:34, Shaun Jackman wrote:
> I found it necessary to write a script that passes device hotplug events on
> to the logged on users of the system. For example, the user plugs in an MP3
> USB device and the device icon is added to the desktop (or the manager is
> opened, etc).
>
> It's not too long so I've simply attached it to this message. If this
> script (or one that performs the same function) were standardized then
> other packages could depend on the functionality provided by it.
>
> This is only a first pass, so if anyone has any suggestions, I'd love to
> hear 'em. The intended functionality is this. This file lives as
> /etc/hotplug/usb/user and any usb.usermap devices that wish to be manged by
> it simply links 'ln -s /etc/hotplug/usb/user /etc/hotplug/usb/mydevice'.
> Whenever mydevice is plugged into the usb chain hotplug calls
> /etc/hotplug/usb/mydevice which in turn calls ~/.mydevicerc for each logged
> in user. If that device distributes a standard script for its plugin/remove
> action, the user can simply 'ln -s /etc/hotplug/usb/mydevicerc
> ~/.mydevicerc'.

Hi,

don't change the permissions. It's a security risk.
You must not die if a script fails, or a user can sabotage notification of other users.
Could you implement a blacklist of users who shall not be notified ?

	Regards
		Oliver

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      reply	other threads:[~2002-02-19  7:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19  5:34 Passing ADD/REMOVE events to logged on users Shaun Jackman
2002-02-19  7:47 ` Oliver Neukum [this message]

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=marc-linux-hotplug-101410506801032@msgid-missing \
    --to=oliver@neukum.org \
    --cc=linux-hotplug@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).