1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

4193 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org
f070df164c [PATCH] udev - kill udevd on install
We want to kill udevd after installing a new version, cause the event
contains a magic with the version number of udev.
2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
c58e36c092 [PATCH] udev - safer sprintf() use
Here is for now my last patch to the string handling for a rather
theorethical case, where the node is very very very long. :)

We have accordant to strfieldcat(to, from) now a strintcat(to, i) macro,
which appends the ascii representation of a integer to a string in a
safe way.
2005-04-26 21:34:28 -07:00
greg@kroah.com
7eb136adb8 [PATCH] 018 release 2005-04-26 21:34:28 -07:00
patmans@us.ibm.com
b484e43622 [PATCH] update udev scsi_id to scsi_id 0.4
This patch syncs the scsi_id in the udev tree to version 0.4.
2005-04-26 21:34:28 -07:00
greg@kroah.com
1373b381d0 [PATCH] add new TODO item about local user permissions. 2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
84d282a9d2 [PATCH] TODO update
On Thu, Feb 12, 2004 at 05:26:37PM -0800, Greg KH wrote:
> On Fri, Feb 13, 2004 at 12:45:38AM +0100, Kay Sievers wrote:
> >
> > Here a few questions about my favorite file in the tree :)
> > - better permission handling
> >
> > What is missing here?
>
> I don't know for sure.  Just a vague feeling that the way we currently
> handle permissions is pretty lousy.  Anyone else feel this way too?

Seems that nobody cares and perhaps the recent klibc permission changes
and the multiple file config directory are enough to kill these lines? :)
2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
49f9bede7c [PATCH] udev - correct relative symlink
Here we remove the useless leading "./" of the linktargets.
Thanks to Olaf Hering <olh@suse.de>, who asked why we do this :)

We have now:

  /udev
  |-- camera0 -> video0
  |-- kamera0 -> video0
  `-- video0
2005-04-26 21:34:28 -07:00
greg@kroah.com
8481f8ce2b [PATCH] Add initial SELinux support for udev
Based on a patch from Daniel J Walsh <dwalsh@redhat.com>
2005-04-26 21:32:31 -07:00
greg@kroah.com
89067448b9 [PATCH] fix build for very old versions of make.
Should get rid of some more error reports of libsysfs header issues.
2005-04-26 21:32:31 -07:00
greg@kroah.com
dde05ccb8d [PATCH] remove limit of the number of args passed to PROGRAM
If we go over our internal limit of 7, then we call out to /bin/sh
otherwise we handle it ourself without relying on a shell.
2005-04-26 21:32:31 -07:00
kay.sievers@vrfy.org
3fe0734266 [PATCH] udev - safer string handling - part four
Mainly a cleanup of the earlier patches with a few missing pieces
and some cosmetical changes.

I've moved the udev_init_config() to very early init, otherwise we
don't get any logging for the processing of the input. What would I
do without gdb :)

Greg, it's the 7th patch in your box to apply. I will stop now and
wait for you :)
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
e964c2c05d [PATCH] udev - safer string handling - part three
Here we truncate our input strings from the environment to our
defined limit. It's a bit theroretical but better check for it.

It cleans up some magic length definitions and removes the code
duplication in udev, udevtest and udevsend.

udevd needs to be killed after installation, cause the message size
is changed with this patch.
Should we do this with the 'make install', like we do with the '.udevdb'?
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
831f800da3 [PATCH] udev - safer string handling - part two
As promised, here is the next round. We provide in addition to the
already used macros:

  strfieldcpy(to, from)
  strfieldcat(to, from)

the corresponding friends, if the size of the target is not known and
must be provided by the caller:

  strnfieldcpy(to, from, maxsize)
  strnfieldcat(to, from, maxsize)

and switch nearly all possibly unsafe users of strcat(), strncat(),
strcpy() and strncpy() to these safer macros.

The last known remaining issue seems the use of sprintf() and
snprintf(). I will take on it later today or tomorrow.
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
bef370d6eb [PATCH] udev - man page update
Hey it's not longer the "goal" to provide a dynamic dev directory,
we have just arrived. So I  change it to more self-confident words :)

I've also added the completly missing environment variables to the
man pages.

To stop the misuse of the PROGRAM= call paramenters, we better mention
its limitations.
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
c472e3c89b [PATCH] udev - safer string handling all over the place
On Tue, Feb 24, 2004 at 11:50:52PM +0100, Kay Sievers wrote:
> Here is the first step towards a safer string handling.
> More will follow, but for now only the easy ones :)
>
> Thanks to all who pointed this out. strncat() isn't a nice function. We
> all should remember that the destination string is not terminated if the
> given lenght is shorter than the strlen of the source string.
>
> And shame on the various implementers of strfieldcat() I found in the
> unapplied patches on this list, it's not really better than strncpy()
> and hides the real problem.

Hmm, bk didn't checked in one file, maybe I edited it again as root.
Nevermind, here is the more complete version.
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
167a27e70f [PATCH] manpage update
Nice, here is the corresponding man update which also removes the
mention of the limitation of getgrname() and friends with klibc.
2005-04-26 21:32:30 -07:00
arvidjaar@mail.ru
7b7e4df57b [PATCH] do not remove real .udev.tdb during RPM build 2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
e41245cb25 [PATCH] udev - allow all files in a directory as the config
I was on the train for 5 hours today and the TODO is almost empty :)
So, at least four people wanted this feature, then here is a actual
working patch.

We may specify now in udev.conf:

  udev_rules="/etc/udev/"

and udev will scan the whole directory for files ending with *.rules,
sort it in lexical order and create our rule list from all of the files.
A plain given file will still work and the same applies to the *.permissions.

I sort the files in our usual linked list, cause klibc has no scandir().
2005-04-26 21:32:30 -07:00
kay.sievers@vrfy.org
82962619c6 [PATCH] udev - simple klibc textual uid/gid handling
Here we get a very dumb getpwnam() and getgrnam() for klibc to
stop the confusion of not handling textual id's if klibc is used.

If used with  initrd we just need to copy the /etc/passwd and /etc/group
file and all should work well.
2005-04-26 21:32:30 -07:00
greg@kroah.com
c80da5085f [PATCH] force udev to include the internal version of libsysfs and never the external one.
Should fix some more build bugs...
2005-04-26 21:32:29 -07:00
greg@kroah.com
df41554d99 [PATCH] fix up libsysfs header file usage to fix bug reports from users that have sysfsutils installed already. 2005-04-26 21:32:29 -07:00
greg@kroah.com
75a7b641ab [PATCH] remove udevtest on 'make clean' 2005-04-26 21:32:29 -07:00
greg@kroah.com
d54fe24caa [PATCH] 018_bk mark 2005-04-26 21:32:29 -07:00
greg@kroah.com
286903679a [PATCH] remove udevd priority TODO item, as it's not needed at all.
We want to be started by keventd, as that runs at a very fast priority.
2005-04-26 21:32:29 -07:00
greg@kroah.com
9e5a552130 [PATCH] v018 release 2005-04-26 21:32:29 -07:00
greg@kroah.com
ca8e992c9b [PATCH] added scsi_id and some more documentation to the udev.spec file. 2005-04-26 21:32:29 -07:00
greg@kroah.com
2b7289ae88 [PATCH] update udev.rules.gentoo with new config file format. 2005-04-26 21:32:29 -07:00
greg@kroah.com
e59d338c96 [PATCH] Update the Gentoo udev.rules and udev.permissions files
These are very good devfs-like rules for others to use if they want to.
2005-04-26 21:32:29 -07:00
greg@kroah.com
1d24d9977d [PATCH] Create a udev.rules.examples file to hold odd udev.rules
These are for examples only, not for everyone to use as they cause too
many problems for different people when they are in the main udev.rules
file.
2005-04-26 21:32:29 -07:00
ext.devoteam.varoqui@sncf.fr
3217d739fb [PATCH] symlink dm-[0-9]* rule 2005-04-26 21:32:29 -07:00
greg@kroah.com
67632351ec [PATCH] add udevd priority issue to the TODO list. 2005-04-26 21:32:29 -07:00
greg@kroah.com
7fdc5cb445 [PATCH] more HOWTO cleanups. 2005-04-26 21:32:29 -07:00
greg@kroah.com
de46ad1952 [PATCH] add HOWTO detailing how to use udev to manage /dev 2005-04-26 21:32:29 -07:00
kay.sievers@vrfy.org
b07ed5a7dc [PATCH] udev - TODO update
Make TODO really small :)
2005-04-26 21:32:29 -07:00
patmans@us.ibm.com
0bad3406c1 [PATCH] udev use new libsysfs header file location
Use the new location of libsysfs header files.
2005-04-26 21:32:29 -07:00
greg@kroah.com
a638109dfa [PATCH] mv libsysfs/libsysfs.h to libsysfs/sysfs/libsysfs.h to make it easier to use. 2005-04-26 21:32:29 -07:00
greg@kroah.com
2152332ea7 [PATCH] add start_udev init script. 2005-04-26 21:32:29 -07:00
greg@kroah.com
961e47847c [PATCH] add support for UDEV_NO_SLEEP env variable so Gentoo people will be happy.
Actually, I'm happy to, startup time is much smaller...
2005-04-26 21:32:28 -07:00
greg@kroah.com
8fff7b42b4 [PATCH] start up udevd ourselves in the init script to give it some good priorities. 2005-04-26 21:32:28 -07:00
ext.devoteam.varoqui@sncf.fr
f01f8c6677 [PATCH] update extras/multipath
patch follows :

        * remove the restrictive -f flag.
          Introduce a more generic "-m iopolicy" one.
        * remove useless "int with_sysfs" in env struct
2005-04-26 21:32:28 -07:00
john-hotplug@fjellstad.org
24f8f09876 [PATCH] init.d debian patch
I dualboot between 2.4.x and 2.6.x right now, and although I
want udev to start up when 2.6 is booting, I don't want it to try when
2.4.x is booting.

This is a small patch to not start up udev if sysfs is not
mounted.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
ad63031e49 [PATCH] udev - add %s{filename} to man page
Add the new %s{filename} to the udev man page.
And add the automatic start of udevd to the udevd man page.
2005-04-26 21:32:28 -07:00
greg@kroah.com
20f86361f4 [PATCH] update the red hat init script to handle nodes that are not present
Thanks to Gentoo for the list of these files.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
7dae391fd6 [PATCH] udev - udevd/udevsend man page
Here is the missing man page for udevd/udevsend.
2005-04-26 21:32:28 -07:00
greg@kroah.com
595251156b [PATCH] add a "old style" SYSFS_attribute test to udev-test.pl 2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
88f09368b3 [PATCH] udev - switch callout part selector to {attribute}
Here we change the magic callout part number selector to the new
atribute syntax. The syntax to select the second part of the callout string:

 '%2c' is now '%c{2}'

I think it's more clear and we no longer misuse the length argument.

The old syntax is still supported, but we should remove it some
time in the future.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
16378373cb [PATCH] udev - switch SYSFS_file to SYSFS{file}
Here we switch the configs and man pages to the new attribute syntax.
Also the 'partition trick' is mentioned in udev.8

I think it's more clear visible now, that inside the brackets are user
supplied values used and not some magic keys handled:

  'SYSFS_dev' is now 'SYSFS{dev}'

The old syntax is still supported.
2005-04-26 21:32:28 -07:00
greg@kroah.com
8bbf27514c [PATCH] Have udevsend report more info in debug mode. 2005-04-26 21:32:28 -07:00
greg@kroah.com
896e5aa9aa [PATCH] Have udevd report it's version in debug mode. 2005-04-26 21:32:28 -07:00
patmans@us.ibm.com
93656247f3 [PATCH] udev add some ID tests
Patch against current udev bk to add a few ID rule tests.
2005-04-26 21:32:28 -07:00