mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Gooch <rgooch@ras.ucalgary.ca>
To: Rene Rebe <rene.rebe@gmx.net>
Cc: linux-kernel@vger.kernel.org, alsa-devel@lists.sourceforge.net
Subject: Re: devfs unable to handle permission: 2.4.17-pre[4,5] / ALSA-0.9.0beta[9,10]
Date: Thu, 6 Dec 2001 23:09:14 -0700	[thread overview]
Message-ID: <200112070609.fB769Eo08508@vindaloo.ras.ucalgary.ca> (raw)
In-Reply-To: <20011207003528.1448673e.rene.rebe@gmx.net>
In-Reply-To: <20011207003528.1448673e.rene.rebe@gmx.net>

Rene Rebe writes:
> At least since 2.4.17-pre4 and -pre5 devfs is not handling
> permissions in the right way with ALSA:

Please define what is the "right way".

> rene@jackson:/dev > l dsp sound/dsp 
> ls: sound/dsp: Permission denied
> lr-xr-xr-x   1 root     root            9 Dec  7 00:14 dsp -> sound/dsp
> rene@jackson:/dev > cd sound/
> bash: cd: sound/: Permission denied
> rene@jackson:/dev > 
> 
> rene@jackson:/dev > l snd
> ls: snd/..: Permission denied
> ls: snd/.: Permission denied
> ls: snd/controlC0: Permission denied
> ls: snd/controlC1: Permission denied
> ls: snd/timer: Permission denied
> ls: snd/midiC0D0: Permission denied
> ls: snd/pcmC0D2p: Permission denied
> ls: snd/pcmC0D1c: Permission denied
> ls: snd/pcmC0D0p: Permission denied
> ls: snd/pcmC0D0c: Permission denied
> ls: snd/midiC1D0: Permission denied
> ls: snd/pcmC1D0p: Permission denied
> ls: snd/pcmC1D0c: Permission denied
> total 0
> 
> They all have 666 (or 777 for dirs)!

Are you saying this is good or bad?

> It is possible to this as root.

It's possible to do what? List the inodes? Open then? What?

> Also loading the modules gives me:
> Dec  7 00:31:58 jackson kernel: devfs: devfs_register(unknown): could not append to parent, err: -17

Two possibilities:

- the module is trying to register "unknown" twice. The old devfs core
  was forgiving about this (although it was always a driver bug to
  attempt to create a duplicate). The new core won't let you do that.
  Error 17 is EEXIST. Please fix the driver

- something in user-space created the "unknown" inode before the
  driver could create it. This is a configuration bug. It seems
  Mandrake has boot scripts which indiscriminately "restore" inodes in
  /dev. This is a bug, because they also restore inodes created by the
  drivers, whereas they should only be restoring admin-created inodes.
  Grab devfsd-v1.3.20 which has the RESTORE directive which does this
  properly, and blow away the part of the Mandrake boot scripts which
  are causing the problem

FYI: what happens now with duplicates is that the old entry remains,
and the new one is discarded. If you really are creating the same
entry, there should be no harm, just that annoying message.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca

  reply	other threads:[~2001-12-07  6:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-06 23:35 Rene Rebe
2001-12-07  6:09 ` Richard Gooch [this message]
2001-12-07 15:22   ` Roman Zippel
2001-12-07 15:59   ` Richard Gooch
2001-12-07 19:17     ` devfs unable to handle permission: 2.4.17-pre[4,5] /ALSA-0.9.0beta[9,10] Roman Zippel
2001-12-07 20:08     ` Richard Gooch
2001-12-07 20:37       ` Roman Zippel
2001-12-09  3:08       ` Richard Gooch
2001-12-09  4:02         ` Roman Zippel
2001-12-09  4:48         ` Richard Gooch
2001-12-09 14:44           ` Roman Zippel
2001-12-09 19:45             ` Marcelo Tosatti
2001-12-09 21:26             ` Richard Gooch
2001-12-09 22:26               ` Roman Zippel
2001-12-09 21:20                 ` Marcelo Tosatti
2001-12-10  0:11                 ` Richard Gooch
2001-12-09 23:00                   ` Marcelo Tosatti
2001-12-09 23:03                     ` Marcelo Tosatti
2001-12-07 16:41   ` devfs unable to handle permission: 2.4.17-pre[4,5] / ALSA-0.9.0beta[9,10] Richard Gooch
2001-12-22 22:14     ` devfs permissions Gabor Z. Papp
2001-12-23  0:11       ` Pozsar Balazs
2001-12-07  7:49 ` devfs unable to handle permission: 2.4.17-pre[4,5] / ALSA-0.9.0beta[9,10] Rene Rebe
2001-12-10 10:46 ` [Alsa-devel] " Takashi Iwai

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=200112070609.fB769Eo08508@vindaloo.ras.ucalgary.ca \
    --to=rgooch@ras.ucalgary.ca \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rene.rebe@gmx.net \
    /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

Powered by JetHome