* udev-024-2 for Fedora
@ 2004-04-15 7:52 Harald Hoyer
2004-04-15 12:10 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Harald Hoyer @ 2004-04-15 7:52 UTC (permalink / raw)
To: linux-hotplug
In udev-024-2, which will appear on fedora development this day I have
done the following:
o added central config file for udev
/etc/sysconfig/udev which contains
-----------------------------------------------
# set USE_UDEV to yes, if you want to use udev
#
USE_UDEV="yes"
# if selinux file attributes
# should be restored (leave to yes, if unsure)
UDEV_SELINUX="yes"
# if console permissions (pam_console)
# should be restored (leave to yes, if unsure)
UDEV_CONSOLE="yes"
# if dbus messages should be sent
UDEV_DBUS="no"
-----------------------------------------------
for that, I had to make /etc/hotplug.d/default/udev.hotplug
a shell script, which tests for USE_UDEV and then
exec's udevsend
o added dbus, selinux and pam_console support through these scripts:
/etc/dev.d/default/dbus.dev
/etc/dev.d/default/pam_console.dev
/etc/dev.d/default/selinux.dev
dbus.dev calls /usr/sbin/udev_dbus which has Kay's
latest dbus patch
pam_console.dev calls pam_console_setowner, which is basically
a modified pam_console_apply, which only modifies one file.
(no glob on /dev, thus no readdir on /dev every time)
selinux.dev just calls
# restorecon $DEVNAME
which makes udev_selinux somehow obsolete.
o set up the config file to use directories for permissions and rules
/etc/udev/permissions.d/00-udev.permissions
/etc/udev/rules.d/00-udev.rules
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: udev-024-2 for Fedora
2004-04-15 7:52 udev-024-2 for Fedora Harald Hoyer
@ 2004-04-15 12:10 ` Kay Sievers
2004-04-15 12:20 ` Harald Hoyer
2004-04-16 23:29 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2004-04-15 12:10 UTC (permalink / raw)
To: linux-hotplug
On Thu, Apr 15, 2004 at 09:52:17AM +0200, Harald Hoyer wrote:
> o set up the config file to use directories for permissions and rules
> /etc/udev/permissions.d/00-udev.permissions
> /etc/udev/rules.d/00-udev.rules
I've had the same '00-' filenames, but in most cases the user wants to
place its rules _before_ the system supplied rules.
Shouldn't we better increase the leading number of the default file a bit? :)
thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: udev-024-2 for Fedora
2004-04-15 7:52 udev-024-2 for Fedora Harald Hoyer
2004-04-15 12:10 ` Kay Sievers
@ 2004-04-15 12:20 ` Harald Hoyer
2004-04-16 23:29 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Harald Hoyer @ 2004-04-15 12:20 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Thu, Apr 15, 2004 at 09:52:17AM +0200, Harald Hoyer wrote:
>
>>o set up the config file to use directories for permissions and rules
>> /etc/udev/permissions.d/00-udev.permissions
>> /etc/udev/rules.d/00-udev.rules
>
>
> I've had the same '00-' filenames, but in most cases the user wants to
> place its rules _before_ the system supplied rules.
> Shouldn't we better increase the leading number of the default file a bit? :)
>
> thanks,
> Kay
>
Hmm, thought about that too, what about 50? Though the rule set is small
and the permissions should really be that way.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: udev-024-2 for Fedora
2004-04-15 7:52 udev-024-2 for Fedora Harald Hoyer
2004-04-15 12:10 ` Kay Sievers
2004-04-15 12:20 ` Harald Hoyer
@ 2004-04-16 23:29 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-04-16 23:29 UTC (permalink / raw)
To: linux-hotplug
On Thu, Apr 15, 2004 at 09:52:17AM +0200, Harald Hoyer wrote:
> In udev-024-2, which will appear on fedora development this day I have
> done the following:
>
> o added central config file for udev
> /etc/sysconfig/udev which contains
> -----------------------------------------------
> # set USE_UDEV to yes, if you want to use udev
> #
> USE_UDEV="yes"
>
> # if selinux file attributes
> # should be restored (leave to yes, if unsure)
> UDEV_SELINUX="yes"
>
> # if console permissions (pam_console)
> # should be restored (leave to yes, if unsure)
> UDEV_CONSOLE="yes"
>
> # if dbus messages should be sent
> UDEV_DBUS="no"
> -----------------------------------------------
>
> for that, I had to make /etc/hotplug.d/default/udev.hotplug
> a shell script, which tests for USE_UDEV and then
> exec's udevsend
>
>
> o added dbus, selinux and pam_console support through these scripts:
> /etc/dev.d/default/dbus.dev
> /etc/dev.d/default/pam_console.dev
> /etc/dev.d/default/selinux.dev
>
> dbus.dev calls /usr/sbin/udev_dbus which has Kay's
> latest dbus patch
>
> pam_console.dev calls pam_console_setowner, which is basically
> a modified pam_console_apply, which only modifies one file.
> (no glob on /dev, thus no readdir on /dev every time)
>
> selinux.dev just calls
> # restorecon $DEVNAME
> which makes udev_selinux somehow obsolete.
>
> o set up the config file to use directories for permissions and rules
> /etc/udev/permissions.d/00-udev.permissions
> /etc/udev/rules.d/00-udev.rules
Looks very nice, I've added most of the dev.d files to the udev tarball,
thanks.
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-16 23:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 7:52 udev-024-2 for Fedora Harald Hoyer
2004-04-15 12:10 ` Kay Sievers
2004-04-15 12:20 ` Harald Hoyer
2004-04-16 23:29 ` Greg KH
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).