All of lore.kernel.org
 help / color / mirror / Atom feed
* run_init: Fork:: No such file or directory
@ 2005-10-22 12:59 Antoine Martin
  2005-10-22 13:13 ` Antoine Martin
  2005-10-22 14:55 ` Chris PeBenito
  0 siblings, 2 replies; 5+ messages in thread
From: Antoine Martin @ 2005-10-22 12:59 UTC (permalink / raw)
  To: SELinux; +Cc: wsalamon, dwalsh

Hi,

I've been running a system with SELinux enforcing mode for some time
(Gentoo x86), but since yesterday I can't seem to use run_init to start
daemons, it fails with:
Fork:: No such file or directory

When I straced it, I found that it is failing to open /dev/ptmx|pty?? :
open("/dev/ptmx", O_RDWR)               = -1 EIO (Input/output error)
open("/dev/ptyp0", O_RDWR)              = -1 ENXIO (No such device or
address)
open("/dev/ptyp1", O_RDWR)              = -1 ENXIO (No such device or
address)
(...)
open("/dev/ptyef", O_RDWR)              = -1 ENXIO (No such device or
address)
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
brk(0)                                  = 0x804b000
brk(0x806c000)                          = 0x806c000
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f17000
_llseek(3, 0, 0xbfc256e4, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "Fork:: No such file or directory"..., 33Fork:: No such file or
directory
) = 33
close(3)                                = 0
munmap(0xb7f17000, 4096)                = 0
exit_group(71)                          = ?

Obviously, the devices are there and I'm not using devfs (kernel
2.6.13.4) /dev is static on ext3 /.
I am really stumped. I've tried rebuilding it, rebuilding the libraries
it depends on, switched to non-enforcing mode, etc.. No luck
Any ideas would be much appreciated.

Thanks
Antoine



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: run_init: Fork:: No such file or directory
  2005-10-22 12:59 run_init: Fork:: No such file or directory Antoine Martin
@ 2005-10-22 13:13 ` Antoine Martin
  2005-10-22 14:46   ` Petre Rodan
  2005-10-22 14:55 ` Chris PeBenito
  1 sibling, 1 reply; 5+ messages in thread
From: Antoine Martin @ 2005-10-22 13:13 UTC (permalink / raw)
  To: SELinux; +Cc: wsalamon, dwalsh

Next time, I'll wait before posting...
I can't explain why that fixed it, but I rebooted, relabeled and now
everything works ok. I've had issues with ttys/ptys before, I guess this
is what has happened here.
Not understanding the problem or the fix makes me nervous though.

Thanks
Antoine



On Sat, 2005-10-22 at 13:59 +0100, Antoine Martin wrote:
> Hi,
> 
> I've been running a system with SELinux enforcing mode for some time
> (Gentoo x86), but since yesterday I can't seem to use run_init to start
> daemons, it fails with:
> Fork:: No such file or directory
> 
> When I straced it, I found that it is failing to open /dev/ptmx|pty?? :
> open("/dev/ptmx", O_RDWR)               = -1 EIO (Input/output error)
> open("/dev/ptyp0", O_RDWR)              = -1 ENXIO (No such device or
> address)
> open("/dev/ptyp1", O_RDWR)              = -1 ENXIO (No such device or
> address)
> (...)
> open("/dev/ptyef", O_RDWR)              = -1 ENXIO (No such device or
> address)
> dup(2)                                  = 3
> fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
> brk(0)                                  = 0x804b000
> brk(0x806c000)                          = 0x806c000
> fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7f17000
> _llseek(3, 0, 0xbfc256e4, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
> write(3, "Fork:: No such file or directory"..., 33Fork:: No such file or
> directory
> ) = 33
> close(3)                                = 0
> munmap(0xb7f17000, 4096)                = 0
> exit_group(71)                          = ?
> 
> Obviously, the devices are there and I'm not using devfs (kernel
> 2.6.13.4) /dev is static on ext3 /.
> I am really stumped. I've tried rebuilding it, rebuilding the libraries
> it depends on, switched to non-enforcing mode, etc.. No luck
> Any ideas would be much appreciated.
> 
> Thanks
> Antoine
> 
> 
> 
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: run_init: Fork:: No such file or directory
  2005-10-22 13:13 ` Antoine Martin
@ 2005-10-22 14:46   ` Petre Rodan
  0 siblings, 0 replies; 5+ messages in thread
From: Petre Rodan @ 2005-10-22 14:46 UTC (permalink / raw)
  To: SELinux

[-- Attachment #1: Type: text/plain, Size: 2593 bytes --]


On Sat, Oct 22, 2005 at 02:13:01PM +0100, Antoine Martin wrote:
> Next time, I'll wait before posting...
> I can't explain why that fixed it, but I rebooted, relabeled and now
> everything works ok. I've had issues with ttys/ptys before, I guess this
> is what has happened here.
> Not understanding the problem or the fix makes me nervous though.

it is a quite common problem that is happening since around ~ 2.6.9. sometimes even ssh logins are impossible because of this bug ("can't open pty" error IIRC).

for me the only way to unlock the situation is to close all open ssh terminals left open toward that server.
once that done, everything (including run_init behavior) returns to normal.

bye,
peter
 
> Thanks
> Antoine
> 
> 
> 
> On Sat, 2005-10-22 at 13:59 +0100, Antoine Martin wrote:
> > Hi,
> > 
> > I've been running a system with SELinux enforcing mode for some time
> > (Gentoo x86), but since yesterday I can't seem to use run_init to start
> > daemons, it fails with:
> > Fork:: No such file or directory
> > 
> > When I straced it, I found that it is failing to open /dev/ptmx|pty?? :
> > open("/dev/ptmx", O_RDWR)               = -1 EIO (Input/output error)
> > open("/dev/ptyp0", O_RDWR)              = -1 ENXIO (No such device or
> > address)
> > open("/dev/ptyp1", O_RDWR)              = -1 ENXIO (No such device or
> > address)
> > (...)
> > open("/dev/ptyef", O_RDWR)              = -1 ENXIO (No such device or
> > address)
> > dup(2)                                  = 3
> > fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
> > brk(0)                                  = 0x804b000
> > brk(0x806c000)                          = 0x806c000
> > fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) = 0xb7f17000
> > _llseek(3, 0, 0xbfc256e4, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
> > write(3, "Fork:: No such file or directory"..., 33Fork:: No such file or
> > directory
> > ) = 33
> > close(3)                                = 0
> > munmap(0xb7f17000, 4096)                = 0
> > exit_group(71)                          = ?
> > 
> > Obviously, the devices are there and I'm not using devfs (kernel
> > 2.6.13.4) /dev is static on ext3 /.
> > I am really stumped. I've tried rebuilding it, rebuilding the libraries
> > it depends on, switched to non-enforcing mode, etc.. No luck
> > Any ideas would be much appreciated.

-- 
petre rodan
<kaiowas@gentoo.org>
Developer,
Hardened Gentoo Linux 

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: run_init: Fork:: No such file or directory
  2005-10-22 12:59 run_init: Fork:: No such file or directory Antoine Martin
  2005-10-22 13:13 ` Antoine Martin
@ 2005-10-22 14:55 ` Chris PeBenito
  2005-10-22 15:47   ` Antoine Martin
  1 sibling, 1 reply; 5+ messages in thread
From: Chris PeBenito @ 2005-10-22 14:55 UTC (permalink / raw)
  To: Antoine Martin; +Cc: SELinux, wsalamon, dwalsh

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

On Sat, 2005-10-22 at 13:59 +0100, Antoine Martin wrote:
> I've been running a system with SELinux enforcing mode for some time
> (Gentoo x86), but since yesterday I can't seem to use run_init to start
> daemons, it fails with:
> Fork:: No such file or directory

This problem should be fixed.  As far as I know, the pty/idr_remove
problem was only being caused in modules in selinux-base-policy, so make
sure you're at least on selinux-base-policy-20050821.

More details:

http://marc.theaimsgroup.com/?l=selinux&m=112419712132326&w=2

-- 
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux
Embedded Gentoo Linux
 
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A  CB00 BC8E E42D E6AF 9243


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: run_init: Fork:: No such file or directory
  2005-10-22 14:55 ` Chris PeBenito
@ 2005-10-22 15:47   ` Antoine Martin
  0 siblings, 0 replies; 5+ messages in thread
From: Antoine Martin @ 2005-10-22 15:47 UTC (permalink / raw)
  To: Chris PeBenito; +Cc: SELinux

On Sat, 2005-10-22 at 10:55 -0400, Chris PeBenito wrote:
> On Sat, 2005-10-22 at 13:59 +0100, Antoine Martin wrote:
> > I've been running a system with SELinux enforcing mode for some time
> > (Gentoo x86), but since yesterday I can't seem to use run_init to start
> > daemons, it fails with:
> > Fork:: No such file or directory
> 
> This problem should be fixed.  As far as I know, the pty/idr_remove
> problem was only being caused in modules in selinux-base-policy, so make
> sure you're at least on selinux-base-policy-20050821.
Yes:
      Latest version installed: 20050821

(as mentioned in another mail, I fixed by rebooting and relabeling)

Thanks
Antoine

> 
> More details:
> 
> http://marc.theaimsgroup.com/?l=selinux&m=112419712132326&w=2
> 


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-22 15:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-22 12:59 run_init: Fork:: No such file or directory Antoine Martin
2005-10-22 13:13 ` Antoine Martin
2005-10-22 14:46   ` Petre Rodan
2005-10-22 14:55 ` Chris PeBenito
2005-10-22 15:47   ` Antoine Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.