Hi helasz,

Am Donnerstag, den 15.01.2009, 09:40 +0100 schrieb [email protected]:
> Hi All,
> 
> My limited contribution to the udev issue sounds like this:
> 
> (main source:
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;hb=HEAD;f=README)
> 
> In my understanding there are only a couple of requirements the above
> website mentions which are (possibly) not met in T2:
> 
> 1) Groups and users
> „The system must have the following group names resolvable at udev
> startup:
> disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem.
> Especially in LDAP setups, it is required, that getgrnam() is able to resolve
> these group names with only the rootfs mounted, and while no network is
> available.”
> 
> In my T2 (trunk) installation the following groups are not there:
> cdrom, floppy, tape, lp, dialout,
> I am not sure that groups ’tape’ and ’dialout’ are
> really needed, however in the above README  that is explicitely stated.
> 
> I have noticed that also group ’uucp’ and user
> ’vcsa’ are claimed to be missing by udev.

This is correct, some group id's expected by udev are missing. We
discussed this already some time ago, and had an issue in our old
bugtracker, but in fact it got never fixed. Changing the id's may break
the upgrade path (Emerge-Pkg) of old installations.

The attached REGISTER file is a proposal about reserved group and user
id's. The sysfiles.diff has the necessary changes for the fixed id's,
the changesets for dynamically registered id's have to be written.

Comments?

> 2)  /dev/tmp
> “Very early in the boot process, the /dev/ directory should get a
> 'tmpfs'
> filesystem mounted, which is populated from scratch by udev. Created nodes
> or changed permissions will not survive a reboot, which is
> intentional.”
> 
> The only item in /etc/fstab  which may seem similar is:
> none  /dev/shm   tmpfs   defaults   0  0
> 
> At this point I am not sure where exactly the problem lies. My guess would
> be either /dev/tmp (instead of /dev/shm) is expected by udev or /dev/shm
> is created too late (-> I am also not sure what exactly “very early
> [in the boot process]” menas, I deduce from the context that in any
> case it should be done before udev be loaded.
> [...]

It's not /dev/tmp which has to be tmpfs, it's /dev itself. That is part
of the initrd scripts and therefore a fstab entry is missing. For
reference the generic initrd script is generated from
package/base/mkinitrd/initrdinit.sh

Michael


Reserved User and Group IDs:
----------------------------

  - system users:       - system groups:
      root   0              root     0
      toor   0              bin      1
      bin    1              daemon   2
      daemon 2              shadow   3
                            games    4
                            tty      5
                            disk     6
                            lp       7
                            mail     8
                            kmem     9
                            wheel   10
      log    11             log     11
      news   12             news    12
      ftp    13             ftp     13
      uucp   14             uucp    14

  - D-BUS / HAL user    - D-BUS / Hal group
      haldaemon  15         haldaemon  15
      dbus       16         dbus       16



  -                     - hardware access groups:
                            video      20
                            audio      21
                            lp         22
                            floppy     23
                            dialout    24
                            usb        25
                            cdrom      26
                            burning    27
                            tape       28
                            scanner    29

  [ free: 30 .. 38 ]

  - mysql users:        - mysql groups:
      mysql 39              mysql 39

  - oracle users:       - oracle groups:
      oracle 40             oracle 40
      dba    41             dba    41

  - postgresql users:   - postgresql groups:
      postgres 42           postgres 42

  [ free: 43 .. 44 ]

  - memcached user:     -memcached group
      memcached 45          memcached 45

  [ free: 46 .. 52 ]

  - cron users:         - cron group:
      cron 53               crontab 53

  - clamav user:        - clamav group:
      clamav 54             clamav 54

  - zeroinstall user:   - zeroinstall group:
      zeroinst 55           zeroinst 55

  - dansguardian user:  - dansguardian group:
      dansguardian 56       dansguardian 56

  [ free: 57 .. 59 ]

  - exim users:         - exim groups:
      exim     60          exim     60

  - sendmail users:     - sendmail groups:
      smmsp    61           smmsp   61

  [ free: 62 ]

  - postfix users:      - postfix groups:
      postdrop 63           postfix 64
      postfix  64

  - nullmailer users:   - nullmailer groups:
      nullmailer 68        nullmailer 68

  - virtual console memory
      vcsa       69         vcsa      69

  - clockspeed:
      Gtaiclock 63

  - djbdns user:
      Gdnscache 64
      Gtinydns  65

  - gdm user:           - gdm group:
      gdm    66             gdm    66

  - gopher user:        - gopher group:
      gopher 70             gopher 70

  - sfs user:           - sfs group:
      sfs    71             sfs    71

  [ free: 72 .. 73 ]

  - sshd users:         - sshd groups:
      sshd   74             sshd   74

  - callweaver user:    - callweaver group:
      callweaver 75         callweaver 75

  [ free: 76 .. 77 ]

  - dovecot user:       - dovecot group:
      dovecot 78            dovecot 78

  - mailman users:      - mailman groups:
      mailman 79           mailman 79

  - httpd user:         - httpd group:
      http 80               http 80

  - partimage users:    - partimage groups:
      partimag 81          partimag 81

  - jabber user:        - jabber group:
      jabber 83            jabber  83

  - qmail users:        - qmail groups:
      alias  90             nofiles 90
      qmaild 91             qmail   91
      qmaill 92
      qmailp 93
      qmailq 94
      qmailr 95
      qmails 96

  - qscanq users:       . qscanq groups:
      Gqscanq 97          Gqscanq   97

  - anonymous user 
      nobody  99          nobody    99

  - regular user group
                          users    100

  - ldap user:          - ldap group:
      ldap  389             ldap 389

  - jboss users:        - jboss groups:
      jboss 390            jboss 390

  - rsbac user:         - rsbac group:
      secoff 400           rsbac 400

  Free IDs:  30-38,46-52,57-62,67-69,72-74,77,84-388,391-399,401-999


Filedescriptor Numbers
----------------------

199     Output plugins unchroot mechanism
200     Package build $builddir/build.pid
201     Target build $build_logs/build_target_$$.log


Licence Names (for package description):
----------------------------------------

  Unknown               The Licence of this package isn't known

  GPL                   The GNU General Public Licence
  LGPL                  The GNU Library General Public Licence
  FDL                   The GNU Free Documentation License
  MPL                   The Mozilla Public Licence
  MIT                   The MIT License
  BSD                   The BSD Licence 
  APL                   The Apache License

  QPL                   The QPL License

  APSL                  Apple Public Source License
  CDDL                  Sun Common Development and Distribution License

  IBM-Public-License    IBM Open Source License

  OpenSource            Any other Open Source licence
  Free-to-use           Any other non Open Source (but free to use) licence
  Commercial            Any other non Open Source (commercial) licence
  Restricted            Any other restricted licence
  PublicDomain          uncopyrighted
  Artistic              The Artistic License    
  wxWindows             The wxWindows Library Licence
Index: package/base/sysfiles/etc_group.txt
===================================================================
--- package/base/sysfiles/etc_group.txt	(Revision 31685)
+++ package/base/sysfiles/etc_group.txt	(Arbeitskopie)
@@ -6,11 +6,24 @@
 tty:x:5:
 disk:x:6:
 lp:x:7:
+mail:x:8:
 kmem:x:9:
-mail:x:8:
 wheel:x:10:
-video:x:16:
-audio:x:17:
+log:x:11:
+news:x:12:
+ftp:x:13:
+uucp:x:14:
+video:x:20:
+audio:x:21:
+lp:x:22:
+floppy:x:23:
+dialout:x:24:
+usb:x:25:
+cdrom:x:26:
+burning:x:27:
+tape:x:28:
+scanner:x:29:
+vcsa:x:69:
 users:x:100:
 nogroup:x:65534:
 nobody:x:65534:
Index: package/base/sysfiles/etc_passwd.txt
===================================================================
--- package/base/sysfiles/etc_passwd.txt	(Revision 31685)
+++ package/base/sysfiles/etc_passwd.txt	(Arbeitskopie)
@@ -2,4 +2,6 @@
 toor:x:0:0:emergency root:/root:/bin/kiss
 bin:x:1:1:bin:/bin:/bin/false
 daemon:x:2:2:daemon:/sbin:/bin/false
+uucp:x:14:14:uucp:/var/spool/uucp:/bin/false
+vcsa:x:69:69:vcsa:/var/empty:/bin/false
 nobody:x:65534:65534:nobody:/var/empty:/bin/false
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to